2017 Visual Studio从不显示导出的项目模板 [英] 2017 Visual Studio never shows Item templates exported

查看:69
本文介绍了2017 Visual Studio从不显示导出的项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有视觉工作室2017企业试用版,我已经安装了两次认为安装有问题,但我导出的所有内容都没有导入到visual studio,I已查看%appdata%和%localappdata%在项目缓存
一个没有显示所有模板所以我删除了文件夹,下次我运行vs它安装到那里,但它仍然没有在添加新项目对话框中显示任何项目模板。它似乎是一个很酷的功能使用,我真的想
使用它,但它只是从来没有显示我导出的任何项目模板,我从来没有尝试过项目模板,如果有人知道如何让这个工作请帮帮我。

解决方案

Hi doubletoker,


欢迎来到MSDN论坛。


>>但我导出的所有东西都没有导入到视觉工作室


  导出自定义项目模板时,请务必选中"自动将模板导入到Visual Studio"
和"在最后一步显示输出文件夹上的资源管理器窗口"。我尝试在我的VS社区/企业2017中导出项目模板并打开解决方案,右键单击项目名称并选择"添加新项目...",这个新创建的自定义项目
模板显示在新添加项目中窗口如下:



请试试以下内容以解决此问题:


1。以管理员身份运行VS企业并导出另一个项目模板以测试此问题


2。以管理员身份重新运行VS 2017安装程序,然后单击"修改"旁边的图标,"启动",选择"修复"进行修复。


3。看看这个麻烦的文件:
https://msdn.microsoft.com/en- us / library / ms185298.aspx


4。看看VS 2015中的这个类似问题:

http://stackoverflow.com/questions/36295432/custom-itemtemplate-does-not-appear-in-visual-studio-2015-add-new-item-dialog





最好的问候,


萨拉


I got visual studio 2017 enterprise trial, I have installed it twice thinking it was something wrong with the installation, but still everything I export doesn't get imported into visual studio, I have looked in %appdata% and %localappdata% at the item caches one didn't show all the templates so I deleted the folder, and next time I ran vs it installed them into there, however it still doesn't show any item templates in the add new item dialog. it seems like it would be a cool feature to use and I really want to use it but it just never shows any item template I export, and I have never tried a project template, if anyone knows how to get this working please help me.

解决方案

Hi doubletoker,

Welcome to the MSDN forum.

>> but still everything I export doesn't get imported into visual studio

 When you export the custom item template, please make sure you check the option "Automatically import the template into Visual Studio" and "Display an explorer windows on the output file folder" at the last step. I tried to export an item template in my VS community/enterprise 2017 and open a solution, right click the project name and choose ‘Add-New Item…’, this newly created custom item template display in the New Add Item windows like the following:

Please have a try with the following to troubleshot this issue:

1. Run the VS enterprise as administrator and export another item template to test this issue

2. Rerun the VS 2017 installer as administrator and click the icon beside ‘Modify’, ‘Launch’, select ‘Repair’ to repair it.

3. Have a look at this troubleshot document: https://msdn.microsoft.com/en-us/library/ms185298.aspx

4. Take a look at this similar issue in VS 2015: http://stackoverflow.com/questions/36295432/custom-itemtemplate-does-not-appear-in-visual-studio-2015-add-new-item-dialog

Best regards,

Sara


这篇关于2017 Visual Studio从不显示导出的项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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