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

查看:12
本文介绍了如何加载我在 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.

我使用的是带有更新 4 的 Visual Studio 2013.

I am using Visual studio 2013 with Update 4.

推荐答案

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

Once you've exported your template, copy the entire ZIP file that was created to the folder C:Users[User Name]DocumentsVisual Studio 2013TemplatesProjectTemplates. (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天全站免登陆