Share via


How to: Manually Change the Template Icon

After creating a template with the Export Template wizard, you may change the icon that appears in the New Project dialog box. You can do this by replacing the current .ico file with a new one, and modifying one line in the .vstemplate file included in the template.

To change the icon for a template

  1. Locate the .zip file that contains your template.

  2. Extract the .zip file.

  3. Double-click the .vstemplate file. The XML file opens in Visual Studio.

  4. Locate the Icon element. For example:

    <Icon>MyIcon.ico</Icon>
    
  5. Change the Icon element to specify the new .ico file.

  6. Save and close the .vstemplate file.

  7. Replace the current .ico file in the directory with the new .ico file.

  8. In Explorer, select the files to include in your template, right-click, select Send To, and click Compressed (zipped) Folder. The files are compressed into a .zip file.

  9. Place the new .zip file in the same directory as the old .zip file.

  10. Delete the extracted template files and the old .zip file.

See Also

Reference

Visual Studio Template Schema Reference

Icon Element (Visual Studio Templates)

Other Resources

Starter Kits

Visual Studio Templates