Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > unregister & register the guidance package
 

unregister & register the guidance package

hi

I register one more new package, this one was the default one whenweinstallGAT, however i removed all other stuff that comes default,it was successful how ever i could not able to see thenew register guidance package in the project types when i open another VS Instance

<VSTemplate

Version="2.0"

Type="ProjectGroup"

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

<TemplateData>

<Name>CommonUtilities Sample Solution</Name>

<Description>Common Utilities Sample Solution</Description>

<ProjectType>CSharp</ProjectType>

<SortOrder>90</SortOrder>

<Icon>CommonUtilities.ico</Icon>

<CreateNewFolder>false</CreateNewFolder>

<DefaultName>CommonUtilitiesGuidancePackageSolution</DefaultName>

<ProvideDefaultName>true</ProvideDefaultName>

</TemplateData>

<TemplateContent>

<ProjectCollection>

<SolutionFolder Name="SampleFolder"/>

<SolutionFolder Name="Other Projects" />

</ProjectCollection>

</TemplateContent>

<WizardExtension>

<Assembly> ...</Assembly>

<FullClassName>...</FullClassName>

</WizardExtension>

<WizardData>

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

SchemaVersion="1.0"

Recipe="CreateSolution">

</Template>

</WizardData>

</VSTemplate>

Configuration file..

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

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

Name="CommonUtilities"

Caption="CommonUtilities"

Description="Common Utilities for all the projects"

Guid="0e3a3f3b-8948-4c51-aca3-d4fb3b4a6eb3"

SchemaVersion="1.0">

<!--BindingRecipe="BindingRecipe"-->

<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>

<Actions>

<Action Name="UnboundT4Template" Type="RefCreator" AssetName="GenerateRepeatingClassT4"

ReferenceType="Microsoft.Practices.RecipeFramework.Library.AssetReferences.UnboundReferences.CSharpProjectRecipeReference, Microsoft.Practices.RecipeFramework.Library" />

</Actions>

</Recipe>-->

<Recipe Name="CreateSolution">

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

<Arguments>

<Argument Name="ProjectName">

<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 solution</Title>

<Fields>

<Field Label="Project Name" ValueName="ProjectName" />

</Fields>

</Page>

</Pages>

</Wizard>

</GatheringServiceData>

</Recipe>

</Recipes>

</Recipes>

ANy thing missing i dont know what is the exact problem pls help me out

regards

satish

satish padidem  Friday, November 02, 2007 9:54 AM

Hi Satish,

If I understand well, you can't see the solution template when yo go to File/New Project. It could be due to different things:

- the vstemplate is not locate in a SolutionFolder called Solutions

- vstemplate is not setted as copy always of if newer

- the order of the element into the vstemplate @ TemplateData element. Pay attention to the default one to get thecorrect order.

tell me if one of those things resolves the issue.

hth

jose.

Jose Escrich  Monday, November 05, 2007 1:39 PM

Hi Satish,

If I understand well, you can't see the solution template when yo go to File/New Project. It could be due to different things:

- the vstemplate is not locate in a SolutionFolder called Solutions

- vstemplate is not setted as copy always of if newer

- the order of the element into the vstemplate @ TemplateData element. Pay attention to the default one to get thecorrect order.

tell me if one of those things resolves the issue.

hth

jose.

Jose Escrich  Monday, November 05, 2007 1:39 PM

thanks jose, for the reply, it was a mistake that i replaced the entire code of thisvstemplate with anotherexisting one, and later I found that GUID should be uniqueandI opened another default guidance package and tried with that it worked

now i am getting another problem,

as you know in the default guidance package, there is a client application in the templates\project folder , i tried to create same for that, i added new folder by name MyClientApplication in solutions\projects, and tried to add new items like settings file,resources file, win form and program.cs and asdefault the namespace will be the guidance package name, however i tried to replace with $safeprojectname$,

when i compiled it says error unidentified error $.what should be done..any tool is there for generating this type of mode.how should i make a model of any project that should be presented in templates..

thanks & Regards

satish kumar P

satish padidem  Tuesday, November 06, 2007 12:13 PM
Hi Satish,
you should set the Build Action of those files as Content. Go to each file and in the property grid you have the BuildAction property.

hth
jose.
Jose Escrich  Tuesday, November 06, 2007 4:17 PM

Hi jose thanks, it worked,

what does it make difference between content and compile also I have seen Copy to output directory it also have copy if newer, copy always and do not copy how doesGAT have affect on each ofthis choices.

One more thing if we go through the Templates\Projects\ClientApplication, in that you could see $safeprojectname$, isearched, how ever i dont understand howdoes this parameter will gets its value i meanin any recipe/template the value is passed to this parameter. I know in the samplesolution.vstemplate there is $projectname$but not this$safeprojectname$,so where is the link.

please help me.

satish kumar

satish padidem  Wednesday, November 07, 2007 6:57 AM

You can use google to search for other answers

Custom Search

More Threads

• How to Create add in for PowerPoint2007 using Visual Studio 2008
• How to remove GAX/GAT July 2007 CTP from your system
• Possible bug in T4
• How to Create Project Reference and App_Code from Web Sevice?
• [GAT Action] VS stops when trying to access recipe arguments
• How to add a single file in a <ProjectCollection>..</ProjectCollection>.
• SCSF/CAB - Module & View Loading Best Practice?
• Unable to create project using GAX/WCSF in VS2008
• T4 generating duplicate code file with different name
• Get a project reference to a website project