Visual Studio 认为已安装“Microsoft Web Developer Tools" [英] Visual Studio thinks `Microsoft Web Developer Tools` is installed

查看:66
本文介绍了Visual Studio 认为已安装“Microsoft Web Developer Tools"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

症状

  • Visual Studio 语法高亮器和用于 JavascriptRazor 视图的 Intellisense 不起作用.

  • Visual Studio syntax highlighter and Intellisense for Javascript and Razor 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:

添加或删除程序>微软 Visual Studio 专业版 2015 >修改

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 esetuserdata 命令来重置用户数据.
  • 运行 devenv.exe installtemplates 来安装模板.
  • 修复 Visual Studio.
  • 尝试通过 Visual Studio 安装程序卸载并重新安装 Web Developer Tools 功能.
  • Running devenv.exe esetuserdata 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:

  1. 从控制面板卸载 ASP.NET Web 工具

  1. 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 Developer Tools"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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