简体   繁体   English

Visual Studio 2015无项目模板

[英]Visual Studio 2015 no item templates

In Visual Studio 2015 when I wanted to add LocalDb (by SQL Server Database item) from templates I discovered that they're gone. 在Visual Studio 2015中,当我想从模板添加LocalDb(按SQL Server数据库项)时,我发现它们已消失。

There isn't any Data templates and what's more strange, there aren't any Online templates to download. 没有任何数据模板,更奇怪的是,没有任何在线模板可下载。

I'm using stable VS 2015 with: 我正在使用稳定的VS 2015:

  • Microsoft SQL Server Data Tools [v.14.0.x] Microsoft SQL Server数据工具[v.14.0.x]

I also have installed on my machine all Sql Server packages distributed with Visual Studio 2015. 我还在计算机上安装了随Visual Studio 2015分发的所有Sql Server程序包。

Question

How can I restore/add those missing item templates? 如何恢复/添加那些丢失的项目模板?

Already checked: 已检查:

  • Calling devenv /installvstemplates to restore default templates didn't work 调用devenv /installvstemplates恢复默认模板无效
  • I've got all templates files in C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\ItemTemplates directory 我在C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\ItemTemplates目录中拥有所有模板文件

Add new item - Installed node 添加新项目-已安装节点 在此处输入图片说明

Add new item - Online templates node 添加新项目-“在线模板”节点

添加新项窗口

I registered just to answer this question because this problem occurred to me with the latest visual studio 2015 update 3. I searched the whole internet and couldn't find a solution, until I found it in the most obvious place. 我注册只是为了回答这个问题,因为这个问题发生在我最近的Visual Studio 2015 Update 3中。我搜索了整个Internet,但找不到解决方案,直到找到最明显的地方。

To solve this: In the command prompt navigate to "Visual Studio Installation Path\\Common7\\IDE" 解决此问题的方法:在命令提示符下,导航到“ Visual Studio安装路径\\ Common7 \\ IDE”

and type this: devenv /installvstemplates 并输入以下内容:devenv / installvstemplates

Source: Microsoft 资料来源: 微软

Mid 2017 and still there are no online templates to be found - in any category, for VS2015. 2017年中,至今仍找不到VS2015的任何类别的在线模板。

Very annoying. 很烦人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM