Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Visual Studio Item Template Examples

This is a fully functional example project showing how to create a custom Item and Project template to use in Visual Studio 2012 and newer.

The example also shows how to incorporate a custom Wizard that gets called after the traditional Add New Item dialog and can be used to further enhance the template processing and resulting code generation.

For more information see my blog at:

What the example contains

  1. An Item template for a C++ unit test file. This template is installed into the Add New Item dialog for all C++ projects.

  1. A custom wizard that is called as a part of the Add New Item process and is used to gather more detailed information to insert into the template.

  1. A VSIX installer project that shows how to package the template project into a self contained automatic installer that can be used to target multiple versions of Visual Studio.

Fix for "GetDeploymentPathFromVsixManifest" task failed unexpectedly

In some cases this error can crop up when debugging your installer and templates in an experimental version of Visual Studio.

It is due to the existence of certain folders under your $APPDATA directories.

The solution includes a bat file VSItemTemplateVISX\prebuild_clean.bat that will remove all these unnecessary files for you in-case you encounter this error.

You will have to shut down your Visual Studio instance before running the command


The actual problem lies in the fact that Visual Studio locks the following three files


You can get away with just deleting them but removing the entire _Exp folder does no harm and potentially avoids other issues if you leave out of date Experimental files in there.


Fully functional example projects showing how to create VISX installable Item and Project templates in Visual Studio




No releases published


No packages published
You can’t perform that action at this time.