Visual Studio认为已安装"Microsoft Web开发工具" [英] Visual Studio thinks `Microsoft Web Developer Tools` is installed
问题描述
症状
-
用于
Javascript
和Razor
视图的Visual Studio语法突出显示和Intellisense无法正常工作.
Visual Studio syntax highlighter and Intellisense for
Javascript
andRazor
views are not working.
在创建新项目时未安装Web
模板.
There is no Web
templates installed when creating a new project.
当我尝试卸载Web开发人员功能时:
When I try to uninstall the web developer feature:
Add or remove Programs > Microsoft Visual Studio Professional 2015 > Modify
Microsoft Web Developer Tools
始终处于选中状态.即使取消选中并卸载它,也要重新启动计算机;否则,请重新启动计算机.下次我仍然看到它被选中时:
Microsoft Web Developer Tools
is always checked. Even when I uncheck it and uninstall it, then restart the computer; the next time I still see it's checked:
我为解决此问题所做的事情
- 运行
devenv.exe \resetuserdata
命令以重置用户数据. - 运行
devenv.exe \installtemplates
以安装模板. - 修复Visual Studio.
- 尝试通过Visual Studio安装程序卸载并重新安装
Web Developer Tools
功能.
- Running
devenv.exe \resetuserdata
Command to reset the user data. - Running
devenv.exe \installtemplates
to install the templates. - Repairing the Visual Studio.
- Trying to uninstall and re-install the
Web Developer Tools
feature through the Visual Studio installer.
到目前为止还没有工作.
None have worked so far.
我猜到了
我认为Visual Studio认为已安装此功能(可能是通过某些注册表项),但实际上未安装文件.
I think Visual Studio thinks this feature is installed (through some registry keys probably) but the files are actually not installed.
因为每当我尝试Modify
安装Visual Studio时,第一秒都不会选中Microsof Web Developer Tools
复选框,然后在1秒钟后再次选中它.
Because whenever I try to Modify
the installation of Visual Studio, the Microsof Web Developer Tools
check box is not checked for the first second, then it is checked again after 1 second.
问题
在不卸载Visual Studio本身的情况下解决此问题的任何建议吗?
Any suggestion on fixing this without uninstalling Visual Studio itself?
推荐答案
我遇到了同样的问题,这对我有用:
I was having the same problem and this is what worked for me:
-
从控制面板卸载ASP.NET Web工具
Uninstall ASP.NET Web Tools from Control Panel
从以下位置下载并安装"Microsoft ASP.NET和Web工具"扩展: https://visualstudiogallery.msdn.microsoft.com/c94a02e9-f2e9-4bad-a952-a63a967e3935
Download and install "Microsoft ASP.NET and Web Tools" extension from: https://visualstudiogallery.msdn.microsoft.com/c94a02e9-f2e9-4bad-a952-a63a967e3935
这篇关于Visual Studio认为已安装"Microsoft Web开发工具"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!