Adding Templates to Visual Studio


Let’s say you would like to add a C# template to Visual Studio.  For instance, Visual Studio 2008 does not have the Mobile Web templates to create mobile applications.  Therefore, you would need to download the templates from the web and add them to Visual Studio. 

In this example, I will download the templates to create Mobile Web applications from the following URL:

http://blogs.msdn.com/webdevtools/archive/2007/09/17/tip-trick-asp-net-mobile-development-with-visual-studio-2008.aspx

Here is a screenshot of the templates after the download.  Notice that the templates are in Zip format.

VisualStudioTemplates1

To install the templates perform the following steps:

1) Find the following folder on your drive (it should be under your Documents folder):

..\My Documents\Visual Studio 2008\Templates\ItemTemplates\Visual C#

2) Copy the templates in Zip format (DO NOT UNZIP) into the folder:

VisualStudioTemplates2

3) Open a new or existing Web Application and select “Add new item” under the Solution Explorer:

VisualStudioTemplates3

4) The templates you added will appear under “My Templates”:

VisualStudioTemplates4

No comments:

Post a Comment