3
I am creating a template for project creation and when editing the file . vstemplate I have something like this :
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
<TemplateData>
<Name>Negocio</Name>
<Description><No description available></Description>
<ProjectType>CSharp</ProjectType>
<ProjectSubType>
</ProjectSubType>
<SortOrder>1000</SortOrder>
<CreateNewFolder>false</CreateNewFolder>
<DefaultName>Negocio</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
<LocationField>Enabled</LocationField>
<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
<Icon>__TemplateIcon.jpg</Icon>
</TemplateData>
<TemplateContent>
<Project TargetFileName="SIIM.Negocio.csproj" File="SIIM.Negocio.csproj" ReplaceParameters="false">
<Folder Name="Base" TargetFolderName="Base">
<Folder Name="Interface" TargetFolderName="Interface">
<ProjectItem ReplaceParameters="true" TargetFileName="I'$safeprojectname$'.cs">IPesquisarEstruturaSIIMN.cs</ProjectItem>
</Folder>
<ProjectItem ReplaceParameters="true" TargetFileName="'$safeprojectname$'N.cs">PesquisarEstruturaSIIMN.cs</ProjectItem>
</Folder>
</Project>
</TemplateContent>
</VSTemplate>
How to change the name of "Targetfilename" so that it is dynamic according to the name that the user type in the dialog box? would like to make a concatenation "I"+ "$safeprojectname$" + ". Cs"someone can help me?