I have a VS 2013 project template with a item like below
<ProjectItem ReplaceParameters="true" TargetFileName="Target.xml">Target.xml</ProjectItem>
What I want is "Target.xml" to be MyProjectName.xml.
I know I can use variables inside the file but not in the name.
Thanks
G
Indeed, you can also use variables within the item template. For instance...
...whereby
fileinputnameis the name as specified in the wizard (without extension). Thesafeprojectnameparameter would give you the project name (not sure, if this can only be used in conjunction with a project template, rather than in an isolated item template).This is the link to the
Project and Item Templatesdocumentation; might be of your interest: https://msdn.microsoft.com/en-us/library/ms247121.aspxA list of available parameters can be found at: https://msdn.microsoft.com/en-us/library/eehb4faa.aspx