Reputation: 1921
I'm writing Visual Studio extension with command in the Solution Explorer. But the command menu item should be available only in the project root folder.
How can I get the project root folder?
Thanks
Upvotes: 0
Views: 228
Reputation: 779
If you mean that your command needs to be appear only if the context menu is open on a project node of the solution explorer, then its parent must be like this:
<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_PROJNODE" />
Upvotes: 1