Table of Contents

IT:AD:Visual Studio:HowTo:Create a Starter Kit

Summary

A Starter Kit is an Project Template ready for publication.

Process

<TemplateContent>
...
  <CustomParameters>
    <CustomParameter Name="$color1$" Value="Red"/>
    <CustomParameter Name="$color2$" Value="Blue "/>
  </CustomParameters>
...
</TemplateContent>

    * `$developing company$`
    * `$copyrightyear$`
    * `namespace $safeprojectname$`

* In the .vstemplate file for the template, locate the ProjectItem element for each file (!). * Set the ReplaceParameters attribute to true for the ProjectItem element. For example:

You can also use the the Parameters to modify the contents of files:

  <ProjectItem ReplaceParameters="true">Class1.cs</ProjectItem>

Note that you can also use the the Parameters to rename files:

<TemplateContent>
      ...
    <ProjectItem
        ReplaceParameters="true"
        TargetFileName="$projectname$.exe">
            File1.exe
    </ProjectItem>
      ...
</TemplateContent>

Resources