Chapter 12: Customizing the Development Environment

351

Figure 12-5 The Select Item References window

After you click Finish, VS does two things: it saves to the output location and makes the template available in VS. The output location is just a place to store the item template, Enum.zip, which contains all of the information VS needs to display the template and create the item if you select it in the New Item window. You can share the item template with other developers, too. The next section shows what to do to get the item template to appear in VS.

Using an Item Template

The instructions for exporting the item template in the preceding section chose “Automatically import the template into Visual Studio,” copying the Enum.zip file from the Output location to <My Documents>\Visual Studio 2010\Templates\ItemTemplates, which I’ll call local item templates. The <My Documents> folder location can differ, depending on the version of Windows you’re running. Once the file appears in the local

Page 374
Image 374
Microsoft 9GD00001 manual 351, Using an Item Template