Visual Studio makes it very easy to create item and project templates with the Export Template Wizard. Open the wizard by selecting Export Template... from the file menu.
Note: For this tip I am using the Jobs Site Starter Kit.
After selecting Export Template... the Export Template Wizard will appear.
For this tip we are creating a website so choose Project template and then click Next. The final wizard page will appear.
Choose a template name and description and automatically import the template into Visual Studio.
Note that if you want your template to appear for all users, you should first uncheck Automatically import the template into Visual Studio and then copy the template alongside the other project or item templates. In this case, to Program Files\Microsoft Visual Studio 9.0\Common7\IDE\VWDExpress\ProjectTemplates\Web\CSharp\1033.
Then navigate to Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ and run VWDExpress /setup. This will copy the template to the cache that Visual Studio loads templates from. If you are using VSTS, simply open a VS command prompt and run Devenv /setup.
Now when you create a new website you can select your newly created site and begin working. As you can see, this tip was created using Visual Web Developer 2008 Express but the steps for VSTS are the same.
Hope this helps you be more productive with your own project and item templates! Stay tuned for more advanced template tips.
Joe Cartano | SDET | Visual Studio Web Developer
Source Click Here.
I had no idea How to make project templates....so I gotta admit I learned a totally new thing from your post..and one of the things that I liked the most about it..was the fact that you went step by step and that you have put in a pic for each step...great post...
ReplyDelete