如何加载我在Visual Studio中创建的模板? [英] How can i load a template I have created in Visual Studio?

查看:122
本文介绍了如何加载我在Visual Studio中创建的模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为项目创建解决方案后,我将其导出为模板.现在,导出后,它会自动将模板添加到我的IDE中,并创建一个包含所有项目文件和.vstemplate扩展文件的ZIP文件.

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.

现在,我在装有Visual Studio的另一台计算机上,我希望加载此模板并将其保存在IDE中,但是我在任何地方都找不到此选项.我所拥有的临时解决方案是打开一个空的Web应用程序,并复制ZIP文件的所有内容(不包括.vstemplate文件).所以我的问题是如何将这个模板加载到我的IDE中?

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?

在Visual Studio中打开vstemplate文件时,我得到的只是一个文本编辑器和XML数据.

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

我正在使用Visual Studio 2013 Update 4.

I am using Visual studio 2013 with Update 4.

推荐答案

导出模板后,将创建的整个ZIP文件复制到文件夹C:\Users\[User Name]\Documents\Visual Studio 2013\Templates\ProjectTemplates. (您可能想使用提供的子目录之一来保持模板井井有条.)

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.)

重新启动Visual Studio,然后使用新建项目"对话框中的搜索栏来帮助您查找刚刚添加的项目模板.

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

这篇关于如何加载我在Visual Studio中创建的模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆