Hola,
I want to add a parameter to the path of the files included on the project. So, for example, I have the file Templates/Solutions/Projects/ConsoleApplication/ConsoleApplication.csproj and I want to add an item like this;
<Compile Include="$path$\Common\Arrays.sj">
<Link>Arrays.sj</Link>
</Compile>
The idea is that the final developer will set $path$ as ..\..\..\.., but I don't know where to link the project template with argument that I've defined on the xml:
Code Snippet
<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="WebSiteName">
<Converter
Type="Microsoft.Practices.RecipeFramework.Library.Converters.NamespaceStringConverter,
Microsoft.Practices.RecipeFramework.Library"/>
</Argument>
<Argument Name="Path">
<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" />
<Field Label="WebSite Name" ValueName="WebSiteName" />
<Field Label="Path" ValueName="Path" />
</Fields>
</Page>
</Pages>
</Wizard>
</GatheringServiceData>
</Recipe>
I think that the $safeprojectname$ is linked using:
<SolutionFolder Name="SampleFolder">
<ProjectTemplateLink ProjectName="$ProjectName$">Projects\ConsoleApplication\ConsoleApplication.vstemplate</ProjectTemplateLink>
</SolutionFolder>
but I don't know what do I have to code to replace the $path$ parameter. Help?
pura vida.