Basic Introduction to Visual Studio templates

Source: Internet
Author: User
Tags visual studio 2010

Some time ago, due to work needs, I had some experiences when I first came into contact with the template of Visual Studio. I wrote this series to make a ppt and make a share session within the group, therefore, it is necessary to repeat our understanding of this topic to make it clearer and more theoretical.

1. Visual Studio template category

Visual Studio Templates include two types: project templates and item templates.
Item template: You can add items to a project by using the "Add new project" dialog box. The item template is dividedSingle file item TemplateAndMulti-file template. (The item template will be introduced at the end of this series, which is simpler than the project template)
Project template: The entire project. You can use the "Create Project" dialog box to create a new project from the Project template. A project template includes all files required to start a specific type of project. The project template is dividedSingle Project templateAndMulti-Project template.

Ii. Ways to load Visual Studio templates

During the project creation process, we seldom worry that we cannot create a suitable project, because we can directly select and create the required project type through the creation wizard, how does Visual Studio help us list these templates, or where can we find them for our choice?

1. Visual Studio uses indexes to list locally installed templates.
1) templates provided by Visual Studio, installed in the product subdirectory of Visual Studio:
<Visualstudioinstalldir> \ common7 \ ide \ projecttemplates \ language \ locale
<Visualstudioinstalldir> \ common7 \ ide \ itemtemplates \ language \ locale

Note: If the template is lost by accident, run devenv.exe/installvstemplates in the command line of Vs to reinstall the template.

2. User template directory. The default path is the following two user-level paths:
My Documents \ Visual Studio 2010 \ Templates \ projecttemplates \ Language
My Documents \ Visual Studio 2010 \ Templates \ itemtemplates \ Language

Of course, the path of the user template can be configured as follows:

3. Online template library of Microsoft Host.
Go to the "Create Project" dialog box

Or, the "new item" dialog box

 

 

In the next article, we will start from the simplest example and continue our series.

From: http://www.ethan-woo.com/post/2011/04/21/VisualStudio-Template-Introduction.aspx

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.