Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > How to get recipe arguments value
 

How to get recipe arguments value

Hello everybody

I am using Software factory toolkit

I want to access recipe argument value in files.I declare recipe argument in Createsolution.xml recipe.

<Argument Name="SolutionNamespace">
<Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.NamespaceStringConverter, Microsoft.Practices.RecipeFramework.Library"/>
<ValueProvider Type="ExpressionEvaluatorValueProvider" Expression="$(safeprojectname)"/>
</Argument>

Now I use $SolutionNamespace$ argument in .cs or csproj files but it give $SolutionNamespace$.

How could I get value of argument declare in Recipe

Thanks

Monesh  Tuesday, June 19, 2007 12:03 PM

Make sure your .vstemplateproperly includes the GAX Wizard extension. It's a chunk that should look like:

<WizardExtension>
<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
<FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName>
</WizardExtension>

If you already have that in place, please post the entire contents of your .vstemplate in order to help the guessing game.

thanks,

-Victor.

vga  Tuesday, June 19, 2007 12:26 PM

Make sure your .vstemplateproperly includes the GAX Wizard extension. It's a chunk that should look like:

<WizardExtension>
<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.60429.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>
<FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName>
</WizardExtension>

If you already have that in place, please post the entire contents of your .vstemplate in order to help the guessing game.

thanks,

-Victor.

vga  Tuesday, June 19, 2007 12:26 PM

Thaks victor.

I solved my problem.Yes there is no wizardextension in my project.vstemplate file

Thank u very much,you helps me from my begining in GAT/GAX

Monesh  Tuesday, June 19, 2007 1:41 PM

You can use google to search for other answers

Custom Search

More Threads

• how to debug the installer of a GAT toolkit?
• Value cannot be null. Parameter name: serviceProvider
• Guidance Automation Manager not visible in Tools menu (VST2005)
• System.Collections.Generic.KeyNotFoundException in custom T4 Action
• Combobox in a wizard
• Windows Installer XML project for GAT Package?
• Recipe Designer - No toolbox items
• Creating Data Repository classes.
• VS 2005 Ambiguous Error
• Some doubts in creating GAT package