Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Possible Syntax for CommandBar Name Attribute
 

Possible Syntax for CommandBar Name Attribute

I have created a Guidance Package using the GAT. I am defining my menus under HostData and I add a Menu node. In the Menu Node I add a CommandBar node and begin adding the value for the Name Attribute. I notice that a Tool Tip for the Name Attributeis displayed that says "A type definition that enumerates a list of friendly names for Visual Studio Command Bars". Ok so what is the syntax for creating a list? I have tried separating with ":", ";", "|", ",", etc and even space; none seem to work.

Is it possible to have something like:
...
<Menu Name="Recalc" Text="Do recalculation" Priority=1>
<CommandBar Name="Solution Folder, Project, Item">
</Menu>

so that my "Do recalculation" menu appears for a right-click context menu for a Solution Folder, Project, and Item?

Regards,
CNazman
CNazman  Saturday, April 11, 2009 12:31 PM
Have you tried using three <CommandBar> elements?

<CommandBar Name="Solution Folder" />
<CommandBar Name="Project" />
<CommandBar Name="Item" />

I think that should work. Let me know!

http://t4editor.net -> RTM version coming soon!!
vga  Wednesday, April 29, 2009 6:19 AM

You can use google to search for other answers

Custom Search

More Threads

• FolderAdd
• What determines whether project templates are or are not available in context?
• Any way to get GAX/GAT working on Vista x64 (VS 2008 RTM)?
• Localization on Recipe Captions?
• unregister & register the guidance package
• *.vstemplate for and *.csproj/*.vbproj must be kept in sync.
• Declaratively determining if an action runs, or a item template unfolds
• DAL
• Setup missing files.
• Register more then one Solution template