Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i load a template I have created in Visual Studio?

After creating a solution for a project, I exported it as a template. Now after exporting it automatically adds the template to my IDE and creates a ZIP file with all the project files and a .vstemplate extension file.

Now i am on another computer with visual studio and i wish to load this template and save it in the IDE, but i cannot find this option anywhere. The temporary solution i have is to open an empty web application and copy all the contents of the ZIP file not including the .vstemplate file. So my question is how can i load this template into my IDE?

When opening the vstemplate file in Visual Studio all i get is a text editor and XML data.

I am using Visual studio 2013 with Update 4.

like image 572
Bodokh Avatar asked Dec 09 '14 14:12

Bodokh


People also ask

How do I import a Visual Studio template?

If you did not select the option Automatically import the template into Visual Studio in the Export Template Wizard, locate the exported template. Then, copy it to the user item template directory. The default location is %USERPROFILE%\Documents\Visual Studio <version>\Templates\ItemTemplates.

Where do I put Visual Studio templates?

By default, user templates are located in: %USERPROFILE%\Documents\Visual Studio 2019\Templates\ProjectTemplates. %USERPROFILE%\Documents\Visual Studio 2019\Templates\ItemTemplates.

How do I find my Visual Studio project Template?

For example, you can right-click the project > click properties > select Application and see(refer to) the related information, for example, Output type -- Windows Application, Console Application, Class Library… Or you can find some related information about the project type from items, files etc.


1 Answers

Once you've exported your template, copy the entire ZIP file that was created to the folder C:\Users\[User Name]\Documents\Visual Studio 2013\Templates\ProjectTemplates. (You might want to use one of the provided subdirectories to keep your template organized.)

Restart Visual Studio, and then use the search bar in the New Project dialog to help you find the project template you just added.

like image 79
Milliron X Avatar answered Nov 12 '22 20:11

Milliron X