Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Create a context menu Item in VS2008 that adds classes to the solution
 

Create a context menu Item in VS2008 that adds classes to the solution

Hi,

I am new to the Guidance Automation Extension. I want to add a menu item to the VS2008 menu which will allow developers automatically insert a view, a view Model, Interface .cs filefor the view, interface .cs file for the viewmodle.

Shouldwire-up the implementations i.e, View implements its IView interface, viewModel implements its IViewModel interface, ViewModel contains an instance of the view etc.

These are boilerplate actions which I am trying to automate.

Please help with a a step - by - step instruction on how to go about this.

I'd like to deploy it so developers can click a script or exe file and it sets up their dev environment and they can access the new functionality.

I have installed the GAX/GAT packages. Do I need to create a Guidance package for this, if so how do I go about this and publishing only the feature descibed above, or is there a way to create a recipe or template that VS2008 just reads and provides the functionality.

Like I said, I am absolutely new to GAX/GAT
Faith as small as a mustard seed, can move mountains - Jesus Christ
Chinedu  Thursday, August 13, 2009 7:43 PM
Hi Chinedu,

You can use the default guidance package tempalte as a base, there you will find a couple of recipe to generate code using t4 or just unfolding a predefined template. Let us know if you need more assistance.

hth


Jose Escrich - weblogs.asp.net/jescrich
  • Proposed As Answer byJose Escrich Thursday, September 10, 2009 1:22 PM
  •  
Jose Escrich  Thursday, September 10, 2009 1:22 PM

You can use google to search for other answers

Custom Search

More Threads

• ProjectReference
• Always publish release build
• Examining the items in a solution
• Pull project from sourcesafe on unfold
• Argument in a Recipe, how to access them from a custom page
• Recipe Designer - No toolbox items
• How to set the Open attribute of AddItemFromStringAction
• Guindance automation toolkit and extensions for Vs 2008 and Vs 2005
• Possible bug in T4
• CreateProjectAction, TextTemplateAction and AddItemFromStringAction are not compatible in one recipe