Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VS Shell how to execute Reload Project command?

$
0
0

I am working with Visual Studio Shell project.

On ProjectNode in procedure RenameProjectFile where is renaming project name, I also renaming folder name.

In procedure RenameProjectFile before I copy files to new location, I programmatically unload project from solution using command:

ErrorHandler.ThrowOnFailure(loSolution.CloseSolutionElement((uint)__VSSLNCLOSEOPTIONS.SLNCLOSEOPT_UnloadProject | (uint)__VSSLNSAVEOPTIONS.SLNSAVEOPT_ForceSave, this, 0));

After I make some changes: copy, delete old files ... I need to reload project.

I can reload manually from menu by click on "Reload Project".

But I want to execute command "Reload Project" programmatically in procedure RenameProjectFile.

How can I do that? 

I already tried with:

- ProjectNode.Reload()

- ProjectNode.ReloadItem(ID, liReserved)

- loProjectFactory.CreateProject( .... )

Thanks,

Turce


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>