Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Newbie Problem
 

Newbie Problem

I'm trying to take the basic package that comes with GAT and modify it to just build a simple solution containing a console app and a library to return hello world to the console - very simple. I chopped out all of the recipes and actions etc. in the sample package that I don't need. The problem is that everytime I try to build a solution from my new Hello World package I get teh folders created in the solution but the projects don't et created.

Thanks so much for any advice to a struggling newbie.

 

 

Package XML config

<?xml version="1.0" encoding="utf-8" ?>

<GuidancePackage xmlns="http://schemas.microsoft.com/pag/gax-core"

Name="CAAFGuidancePackage"

Caption="CAAFGuidancePackage Version 1.0.0.0"

Description="A package to deliver the City of Calgary blueprint .NET architecture to developers"

BindingRecipe="BindingRecipe"

Guid="6f9b63ab-1adc-44b5-9af9-a2e1d0248f5f"

SchemaVersion="1.0">

<Recipes>

<Recipe Name="BindingRecipe">

<Types>

<TypeAlias Name="RefCreator" Type="Microsoft.Practices.RecipeFramework.Library.Actions.CreateUnboundReferenceAction, Microsoft.Practices.RecipeFramework.Library"/>

</Types>

<Caption>Creates unbound references to the guidance package</Caption>

</Recipe>

<Recipe Name="CreateCAAFSolution">

<Caption>Collects information for the new CAAF solution.</Caption>

<Arguments>

<Argument Name="LibraryProjectName">

<Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.NamespaceStringConverter, Microsoft.Practices.RecipeFramework.Library"/>

</Argument>

<Argument Name="ClientProjectName">

<Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.NamespaceStringConverter, Microsoft.Practices.RecipeFramework.Library"/>

</Argument>

</Arguments>

<GatheringServiceData>

<Wizard xmlns="http://schemas.microsoft.com/pag/gax-wizards" SchemaVersion="1.0">

<Pages>

<Page>

<Title>Initial values for the new CAAF solution</Title>

<Fields>

<Field Label="Library Project Name" ValueName="LibraryProjectName" />

<Field Label="Client Project Name" ValueName="ClientProjectName" />

</Fields>

</Page>

</Pages>

</Wizard>

</GatheringServiceData>

</Recipe>

</Recipes>

</GuidancePackage>

 

 

 

Solution template:

<VSTemplate

Version="2.0"

Type="ProjectGroup"

xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">

<TemplateData>

<Name>CAAFGuidancePackage Solution</Name>

<Description>CAAFGuidancePackage Solution</Description>

<ProjectType>CSharp</ProjectType>

<SortOrder>90</SortOrder>

<Icon>CAAFSolution.ico</Icon>

<CreateNewFolder>false</CreateNewFolder>

<DefaultName>CAAFGuidancePackageSolution</DefaultName>

<ProvideDefaultName>true</ProvideDefaultName>

</TemplateData>

<TemplateContent>

<ProjectCollection>

<SolutionFolder Name="Other Projects" />

<SolutionFolder Name="ClientProjectName">

<ProjectTemplateLink ProjectName="ClientProjectName">Projects\TemplateClient\TemplateClient.vstemplate</ProjectTemplateLink>

</SolutionFolder>

<SolutionFolder Name="LibraryProjectName">

<ProjectTemplateLink ProjectName="LibraryProjectName">Projects\TemplateLibrary\TemplateLibrary.vstemplate</ProjectTemplateLink>

</SolutionFolder>

</ProjectCollection>

</TemplateContent>

<WizardExtension>

<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.51206.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

<FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName>

</WizardExtension>

<WizardData>

<Template xmlns="http://schemas.microsoft.com/pag/gax-template"

SchemaVersion="1.0"

Recipe="CreateCAAFSolution">

<References>

<!--<TemplateReference Name="Projects\TemplateClient\TemplateClient.vstemplate" Target="\ClientProjectName" />-->

</References>

</Template>

</WizardData>

</VSTemplate>

 

 

 

 

 

 

Georearl  Thursday, February 23, 2006 6:10 PM

Got it

Simple really.

By default, when the vstemplate file was added to the project, it's "copy to output directory" property is set to "do not copy". When this is changed ot always it finds it :-)

All's well that ends well.

Georearl  Saturday, February 25, 2006 12:45 AM

Some more information - It seems to be something about teh way I'm adding files into the project templates below the solutions folder. I have a project - the console app that comes as part of teh sample and it unpacks just fine. If I delete the vstemplate file via the IDE and then add it back in by replacing it in the folder structure thru explorer then adding an existing item via the IDE - the console app does not unpack and I get an error about not being able to find the vstemplate file.

and yet the vstemplate is there in exactly the same location it was before with the same name.

Am I just going about adding files into the solution\projects folder incorrectly?

Thanks

Georearl  Saturday, February 25, 2006 12:16 AM

Got it

Simple really.

By default, when the vstemplate file was added to the project, it's "copy to output directory" property is set to "do not copy". When this is changed ot always it finds it :-)

All's well that ends well.

Georearl  Saturday, February 25, 2006 12:45 AM

You can use google to search for other answers

Custom Search

More Threads

• Could not load WCSF project Microsoft.Practices.ComponentModel
• Web Project
• Possible Syntax for CommandBar Name Attribute
• Issue passing input parameters to actions
• Unable to load type System.Collections.Generic.Dictionary
• Service Factory installation problem...
• Boolean argument issue
• GAT breaking changes
• Get all classes from a Project?
• Discovering "out" parameters in source code?