Stupid question here😁
I'm trying to close and open the current project to reset the project for the Add-In. Nothing happens with the code as expected because the project is already open.
I have a "reset" function where i find all the elements in the Add-in and reset them. If the project could be "reloaded", it would be easier.
protected override void OnClick()
{
var curProject = Project.Current;
string projectPath = curProject.URI;
Project.Current.SetDirty(false);
openPrj(projectPath);
}
private async void openPrj(string projectPath)
{
await Project.OpenAsync(projectPath);
}
Thanks!