Hello everyone,
MY solution.vstemplate file is:
<TemplateContent> <ProjectCollection> <SolutionFolder Name="$ProjectName$"> </SolutionFolder> </ProjectCollection> </TemplateContent>
In Solution Folder Name, I want to create Solution Folderas my Project Name.
Butit create folder with $ProjectName$ .Is it Possible
Thanks.
|
| Monesh Monday, June 04, 2007 4:23 AM |
If this is the error you're getting:
Microsoft.Practices.RecipeFramework.ValueProviderException: An exception occurred during the binding of reference or execution of recipe CreateSolution. Error was: Failed to load value providers.. You can remove the reference to this recipe through the Guidance Package Manager. ---> System.ArgumentException: Invalid qualified type name ExpressionEvaluatorValueProvider.
I would check the type alias definition for your "ExpressionEvaluatorValueProvider", can you post it? |
| vga Wednesday, June 06, 2007 2:17 PM |
Hi Monesh,
Regarding the solution folders if you want to create it dinamically, you can't do that through the vstemplate, so you should do that, adding an action in the CreateSolution recipe. The default gax library does not have any action which can do that, however you can download SFT which have a useful set of assets, like actions, valueproviders and so on. There you'll find aAddSolutionFolderAction which add a solution folder after the solution was unfolded. Also there are an AddSolutionItemAction which adds solution items.
You can download SFT from here. |
| Jose Escrich Wednesday, June 06, 2007 2:36 PM |
Hi Monesh, there are no way to use replacement in solutionfolder names, maybe what you could do is create you solution structure using actions or modify the structure after the solution is unfolded.
|
| Jose Escrich Wednesday, June 13, 2007 1:33 AM |
hello everybody,
I think that is not a big problem and have solution through GAT using recipe and action
I am trying to create custome parameter
my solution.vstemplate file:
<TemplateContent> <ProjectCollection> <SolutionFolder Name="$SolutionName$">
</SolutionFolder>
</projectCollection>
<CustomParameters > <CustomParameter Name="$SolutionName$" Value="$ProjectName$"/> </CustomParameters>
</TemplateContent>
<WizardData> <Template xmlns="http://schemas.microsoft.com/pag/gax-template" SchemaVersion="1.0" Recipe="CreateSolution"> </Template> </WizardData>
Now in CreateSolution recipe at Package.xml file,I do
<Argument Name="SolutionName"> <ValueProvider Type="ExpressionEvaluatorValueProvider" Expression="$(ProjectName)" > <MonitorArgument Name ="ProjectName"/> </ValueProvider> </Argument> </Arguments>
The register is successfull,but when I run my package ,I get error
Microsoft.Practices.RecipeFramework.ValueProviderException: An exception occurred during the binding of reference or execution of recipe CreateSolution. Error was: Failed to load value providers.. You can remove the reference to this recipe through the Guidance Package Manager. ---> System.ArgumentException: Invalid qualified type name ExpressionEvaluatorValueProvider. at Microsoft.Practices.Common.ReflectionHelper.GetAssemblyString(String qualifiedTypeName) at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.AliasResolutionService.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) at Microsoft.Practices.Common.Services.TypeResolutionService.GetType(String typeName, Boolean throwOnError) at Microsoft.Practices.RecipeFramework.Recipe.GetInstance[T](ITypeResolutionService resolution, String concreteType) at Microsoft.Practices.RecipeFramework.Recipe.LoadProviders(ITypeResolutionService resolution) --- End of inner exception stack trace --- at Microsoft.Practices.RecipeFramework.Recipe.LoadProviders(ITypeResolutionService resolution)
Is this is right way?
can anyone guide me,I am new in GAT.
Plz Help ASAP.
Thanks
|
| Monesh Tuesday, June 05, 2007 8:00 AM |
Could you post where you've defined the ProjectName argument?
It might that you don't have defined ProjectName argumentor something like this. |
| Jose Escrich Wednesday, June 06, 2007 1:40 AM |
Thanks jose for replying my question.
In my Guidancepackage.xml file, I declare CreateSolution recipe which I called from wizard data section of solution.vstemplate file.I declare ProjectName and SolutionNameParameters in my CreateSolution Recipe
My CreateSolution Recipe is as below
*********************************************************************************************************************************
<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> <Argument Name="SolutionName"> <Converter Type ="Microsoft.Practices.RecipeFramework.Library.Converters.NamespaceStringConverter, Microsoft.Practices.RecipeFramework.Library"></Converter> <ValueProvider Type="Evaluator" Expression="$(ProjectName)" > <MonitorArgument Name ="ProjectName"/> </ValueProvider> </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>
**************************************************************************************************************************************
Guide me where I am wrong,where should I declare my SolutionName Parameter
ProjectName parameter works correctly at
<ProjectTemplateLink ProjectName="Test.$ProjectName$.Business">Projects\Business\MyTemplate.vstemplate</ProjectTemplateLink>
|
| Monesh Wednesday, June 06, 2007 4:34 AM |
If this is the error you're getting:
Microsoft.Practices.RecipeFramework.ValueProviderException: An exception occurred during the binding of reference or execution of recipe CreateSolution. Error was: Failed to load value providers.. You can remove the reference to this recipe through the Guidance Package Manager. ---> System.ArgumentException: Invalid qualified type name ExpressionEvaluatorValueProvider.
I would check the type alias definition for your "ExpressionEvaluatorValueProvider", can you post it? |
| vga Wednesday, June 06, 2007 2:17 PM |
Hi Monesh,
Regarding the solution folders if you want to create it dinamically, you can't do that through the vstemplate, so you should do that, adding an action in the CreateSolution recipe. The default gax library does not have any action which can do that, however you can download SFT which have a useful set of assets, like actions, valueproviders and so on. There you'll find aAddSolutionFolderAction which add a solution folder after the solution was unfolded. Also there are an AddSolutionItemAction which adds solution items.
You can download SFT from here. |
| Jose Escrich Wednesday, June 06, 2007 2:36 PM |
Thanks victor and jose for seeing my problem
I just want to create solution folder's Name as my Project Name
my solution.vstemplate file is
******************************************************************************************************************
<TemplateContent> <ProjectCollection> <SolutionFolder Name="$ProjectName$"> <ProjectTemplateLink ProjectName="testl.$ProjectName$.Business">Projects\Current\MyTemplate.vstemplate</ProjectTemplateLink> </SolutionFolder>
</ProjectCollection>
******************************************************************************************************************
ProjectNameworks fine at projectTemplateLink but it create solutionfolderas $ProjectName$(It is seen at solution explorer, and this folder contains projects and file.)
BUT as I go to to physical location I see two folders with name $ProjectName$ and ABC(This is the name give by me as "ProjectName" replacement parameter,which contain projects that I want in it) and $ProjectName$ folder is empty at physical location.But at solution explore $ProjectName$ foldercontain project and file.At Solution Explorer I don't have solution folder with Name "ABC".
The ABC folder at physical location containproject that i want.
Itry both GAT and software factory same problem occur with both.
hope it is understandable |
| Monesh Friday, June 08, 2007 4:54 AM |
Hi Monesh, there are no way to use replacement in solutionfolder names, maybe what you could do is create you solution structure using actions or modify the structure after the solution is unfolded.
|
| Jose Escrich Wednesday, June 13, 2007 1:33 AM |
Thanks jose,
I will try to do this.
|
| Monesh Wednesday, June 13, 2007 10:24 AM |