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

VS Shell how to override RemoveProject command?

$
0
0

Hello.

I am working with Visual Studio Shell project.

I want to change default dialog for removing project from solution and also add funcionallity to delete data from disk.

However, I put breakpoint in ProjectNode class on ExecCommandOnNode and when I choose "Remove" from context menu in Solution Explorer, it hit that breakpoint and aiCommandID was set to VSConstants.VSStd97CmdID.Delete. 
But when I select project in shell and press shortcut "Del" on keybord or when I select Remove from menu "Edit"->"Remove" for removing the project from solution it don't hit breakboint in ProjectNode.

I also tried to override void Remove(bool removeFromStorage) in (custom)ProjectNode but it works only if I choose "Remove" from context menu.

Where is the best point or what is the best way to override Remove command?

Thaks!
Turce



Viewing all articles
Browse latest Browse all 4410

Trending Articles