Click here to Skip to main content
13,191,172 members (83,050 online)
Click here to Skip to main content
Add your own
alternative version


34 bookmarked
Posted 23 Sep 2013

Project Template in Visual Studio 2012

, 23 Sep 2013
Rate this:
Please Sign up or sign in to vote.
This article describes the step by step process of creating project template and VSIX installer that deploys the project template.
Sample Image - maximum width is 600 pixels


This article describes the step by step process of creating project template in Visual Studio 2012 and VSIX installer that deploys the project template. Each step contains an image snapshot that helps the reader to keep focused.


A number of predefined project and project item templates are installed when you install Visual Studio. You can use one of the many project templates to create the basic project container and a preliminary set of items for your application, class, control, or library. You can also use one of the many project item templates to create, for example, a Windows Forms application or a Web Forms page to customize as you develop your application.

You can create custom project templates and project item templates and have these templates appear in the New Project and Add New Item dialog boxes. The article describes the complete process of creating and deploying the project template.

Using the Code

Here, I have taken a very simple example which contains nearly no code but this can be extended as per your needs.

Create Project Template

First of all, create the piece (project or item) that resembles the thing you want to get created started from the template we are going to create.

Then, export the template (we are going to use the exported template as a shortcut to build our Visual Studio template package):

Visual Studio Project Templates

We are creating a project template here.

Fill all the required details:

A zip file should get created:

Creating Visual Studio Package Project

To use VSIX projects, you need to install the Visual Studio 2012 VSSDK.

Download the Visual Studio 2012 SDK.

You should see new project template “Visual Studio Package” after installing SDK.

Select C# as our project template belongs to C#.

Provide details:

Currently, we don’t need unit test project but they are good to have.

In the solution, double-click the manifest, so designer opens.

Fill all the tabs. The most important is Assert. Here you give path of our project template(

As a verification step, build the solution, you should see a .vsix being generated after its dependency project:

Installing the Extension

Project template is located under “Visual C#” node.

Uninstalling the Project Template



  • Initial version


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

India India
I spent some time working as a programmer and computer developer for several IT companies. I gained a lot of knowledge and experience in the process, and met some very supportive people in the industry. In May 2000' I joined LBS College for Higher studies.

I enjoyed my studies as much as academic studies can be enjoyed. I feel that I depend my understanding of computers because of them. The LBS College gives his students a high level of studying, but my main problem with it is that its tests are sometimes completely out of sync with the material that is learned, too long and/or too hard, and so students receive low grades and are frustrated. This is especially demotivating considering the fact that studying there is a lot of work.

You may also be interested in...

Comments and Discussions

QuestionReference Paths Pin
SharonD2149-Jul-15 7:49
memberSharonD2149-Jul-15 7:49 
QuestionVisual Studio Custom project Pin
Abbas K20-Apr-15 0:36
memberAbbas K20-Apr-15 0:36 
SuggestionVote of Thanks Pin
kenitoskato10-Jul-14 12:17
memberkenitoskato10-Jul-14 12:17 
QuestionMultiple projects Pin
joltee8-Oct-13 1:34
memberjoltee8-Oct-13 1:34 
AnswerRe: Multiple projects Pin
AbhishekGoenka8-Oct-13 16:46
memberAbhishekGoenka8-Oct-13 16:46 
GeneralRe: Multiple projects Pin
joltee9-Oct-13 3:35
memberjoltee9-Oct-13 3:35 
Thanks for the link, but the problem is a more complex as we try to define some references (and namespace usings as well). For sake of simplicity let suppose that a client console has a reference to a BLL class library, in this case, we have to define a wizzardExtension in vstemplate as well. If anyone facing the same problem let me to link a great article about this problem[^]
Anyway, thanks for the quick response.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171016.2 | Last Updated 23 Sep 2013
Article Copyright 2013 by AbhishekGoenka
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid