Troubleshoot project and item templates
Applies to: Visual Studio
If a template fails to load in the development environment, there are several ways to locate the problem.
Validate the vstemplate file
If the vstemplate file in a template doesn't adhere to the Visual Studio template schema, the template may not appear in the dialog box where you create new projects.
Validating the vstemplate file
Locate the .zip file that contains the template.
Extract the .zip file.
On the File menu in Visual Studio, select Open > File.
Select the vstemplate file for the template, and select Open.
Verify that the XML of the vstemplate file adheres to the template schema. For more information on the vstemplate schema, see the Template schema reference section.
Note
To get IntelliSense support while authoring the vstemplate file, add a
xmlns
attribute to theVSTemplate
element, and assign it a value ofhttp://schemas.microsoft.com/developer/vstemplate/2005
.Save and close the vstemplate file.
Select the files included in your template, right-click, and select Send to > Compressed (zipped) folder. The files that you selected are compressed into a .zip file.
Place the new .zip file in the same directory as the old .zip file.
Delete the extracted template files and the old template .zip file.
Enable diagnostic logging
You can enable diagnostic logging for template discovery by following the steps in the Troubleshoot template discovery (extensibility) section.