0

I'm creating a Visual Studio project template as described in the documentation. This involves using $tokens$ in files (cs/csproj/xml/etc) which are substituted when the template is used.

However this substitution is not happening for one of my files.

Why isn't it applying to this file?

Drew Noakes
  • 300,895
  • 165
  • 679
  • 742

1 Answers1

0

Not all file types (determined by extension) are supported.

For example, if you have an XML document named App.manifest then substitution will not be applied.

To get around this, rename the file to end in a supported extension (eg. App.manifest.xml), then update the .vstemplate file to apply the desired name when the template is used.

In this example the ProjectItem node would resemble:

<ProjectItem ReplaceParameters="true"
             TargetFileName="App.manifest">App.manifest.xml</ProjectItem>
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742