Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > What determines whether project templates are or are not available in context?
 

What determines whether project templates are or are not available in context?

I am trying to use project templates with GAT. I can't seem to determine when a project template will or will not show in Add -> New Project.
I'm looking at the source code for Web Service Software Factory as an example.
If you have no solution, and you hit New Project from the File menu, you can see WSSF's "Model Project", which is in their Solutions folder in their GAT source code. You can NOT see any of the projects from their Projects folder in their GAT source code, even though you're trying to add a project. That strikes me as unexpected.
If you create a "Model Project" solution, and then you hit Add -> New Project from the solution context menu, you can see "ASMX Implementation Projects" and "WCF Implementation Projects", which are the projects from their Projects folder in their GAT source code. That's expected. You can't see the "Model Project" solution, which is also expected.
If you create a solution folder in the "Model Project" solution and hit Add -> New Project from ITS context menu, you DON'T see either of those projects. That's unexpected for sure. Furthermore, you DO see the "Model Project" solution and can add it to the solution folder, and that's definitely unexpected for sure.
If you create a solution any other way other than by using that "Model Project" solution, you can't see the two projects from Add -> New Project, but you can see "Model Project" and add it to the solution.
None of this makes any sense to me, and I'm wondering what controls this behavior.

I ask because I have a multi-project template that I want to be able to use both to create a new solution OR to add to an existing solution.
At this point I've actually got similar copies of the whole multi-project structure below both the Solutions and the Projects folders in my GAT.
For me, when I register my GAT, if I have no solution or am creating a new solution, I see the multi-project template from the Solutions folder, as well as, surprisingly, the sub-templates below it in the Solutions folder. I don't see anything from the Projects folder.If I create any of them, and try to add anything to the solution, I don't see anything from my Guidance Package at ALL. Nor do I see it in any solution I create any other way.

Anyone have any guidance??

Grant Bowering  Wednesday, August 12, 2009 11:43 PM
Hi,

GAX uses a references mechanism to determine when a recipe or template should shows up or not. Please check this posthttp://blogs.msdn.com/wojtek/archive/2005/05/17/418706.aspx.

hth.
-jose.

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

You can use google to search for other answers

Custom Search

More Threads

• pre/post build events
• Smart Cllient Software Factory Template does not show in Visual Studio 2005
• GAT for VS2008 installation issues
• Trying to better understand the CreateProjectAction?
• unregister & register the guidance package
• GAX License clarification for commercial use.
• GAT
• UnfoldTemplateAction - with template parameter
• GAT - Custom Wizard Pages
• GAT is VS Solution Centric