o..o
o..o

Reputation: 1921

Visual Studio Extension - project root folder

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

Answers (1)

Hugo Quintela Ribeiro
Hugo Quintela Ribeiro

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

Related Questions