How to create and use web site template in visual studio 2010?

this blog shows you on how to create and use web site template in visual studio 2010.  Before creating a template, you need to create a web site or project that you like to create a template.

Step 1: Click on File then find and click on Export Template.

Step 2: On Choose Template Type, choose project or item template, then choose which project you like to create a template, and then choose either C #or VB.NET.

Step 3: You will see your entire project in this solution. You need to pick one. Then click on next.

Step 4: You can provide template name, template description, icon image, preview image. Then click on finish button.

Step 5: Go to you’re my computer, Here is a sample path, C:\Users\<user name>\Documents\Visual Studio 2010\My Exported Templates. You can see your template in zip format.

Step 6: Copy and paste the zip file from C:\Users\<user name>\Documents\Visual Studio 2010\My Exported Templates\ to C:\Users\<user name>\Documents\Visual Studio 2010\Templates\ProjectTemplates\Visual C#\.

Step 7: Click on File, then click on new web site, find and choose your newly created template. Type your project name and then click OK.

In case that the export template is missing, try to reset settings. Find and click on Tools, then find and click Import and Export Settings.

References:

http://msdn.microsoft.com/en-us/library/ms185291.aspx

http://msdn.microsoft.com/en-us/library/ms185311.aspx

http://msdn.microsoft.com/en-us/library/ms247065.aspx

http://msdn.microsoft.com/en-us/library/y3kkate1.aspx

http://msdn.microsoft.com/en-us/library/s365byhx.aspx

http://msdn.microsoft.com/en-us/library/xkh1wxd8.aspx

http://www.bluelemoncode.com/post/2012/01/20/Creating-custom-project-template-for-Visual-Studio-with-pre-installed-NuGet-packages.aspx

http://www.carlosag.net/articles/create-vs-template

http://www.codeproject.com/Articles/88957/Write-Templates-for-Visual-Studio-2010

http://www.asp.net/whitepapers/aspnet4

VSIX

http://msdn.microsoft.com/en-us/library/dd885241.aspx

http://msdn.microsoft.com/en-us/library/dd393742.aspx

http://www.microsoft.com/download/en/details.aspx?id=2680

Note: I have not yet included any images in this post.

Advertisements
This entry was posted in .NET Framework 4, C# 4.0 AND ASP.NET 4.0, Project Template, Web site Template. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s