Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Keyref warning
 

Keyref warning

Hello everyone,

Forgive me if you findthe answer to my question obvious, but I'm new using GAT.

I keep getting the same warning: "The key sequence 'Company.Project.$GlobalProjectName$.Common' in Keyref fails to refer to some key".

I have the following code:

<Argument Name="GlobalProjectName">

<ValueProvider Type="Evaluator" Expression="$(CustomerName).$(CustomerProjectName)">

<MonitorArgument Name="CustomerName" />

<MonitorArgument Name="CustomerProjectName" />

</ValueProvider>

</Argument>

I use the "GlobalProjectName"-parameter in several ways:

<Action Name="GetCommonProject" Type="Microsoft.Practices.RecipeFramework.Library.Actions.GetProjectAction, Microsoft.Practices.RecipeFramework.Library">

<Input Name="ProjectName" RecipeArgument="Prefix.$GlobalProjectName$.Common" />

<Output Name="Project" />

</Action>

... and to give a name to my projects in nodes like "ProjectTemplateLink".

Does anyone know why I keep getting this warning?

Thanks in advance,

Grtz,

Nocto

Nocto  Monday, December 17, 2007 4:42 PM
Hi Nocto,

The RecipeArgument attribute value must exactly match the name given to a recipe argument. In your case, it doesn't as you've included some literal text too, and thus a keyref warning is emitted. If you want to pre-post fix literals to a recipe argument please use a value provider for example.

HTH,
-Victor.
vga  Monday, December 17, 2007 6:20 PM
Hi Nocto,

The RecipeArgument attribute value must exactly match the name given to a recipe argument. In your case, it doesn't as you've included some literal text too, and thus a keyref warning is emitted. If you want to pre-post fix literals to a recipe argument please use a value provider for example.

HTH,
-Victor.
vga  Monday, December 17, 2007 6:20 PM

Thanks a lot, I overlooked that!

Problem solved, thanks again!

Nocto  Tuesday, December 18, 2007 7:28 AM

You can use google to search for other answers

Custom Search

More Threads

• Error installing GAT on VS 2005 (German)
• Can't see item templates for WebApplication projects
• Create a single file generation that use T4 template
• Cannot download June CTP GAX or GAT - download hangs
• How to Create Project Reference and App_Code from Web Sevice?
• Passing custom objects to t4 templates
• uninstall previously installed while installing
• How to execute actions after solution template was unfolded
• How to invoke GAT Recipes from XAML conetxt menu
• web project template, to fire code in gac class.