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
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
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" />