IntelliSense 不适用于 MVC Razor cshtml 页面 [英] IntelliSense won't work for MVC Razor cshtml page

查看:51
本文介绍了IntelliSense 不适用于 MVC Razor cshtml 页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了

没有为扩展 cshtml 注册的构建提供程序

There is no build provider registered for extension cshtml

我的一个使用 MVC 3 的项目出错.这使得自动完成不起作用.程序还在运行,但是很烦人.

error for one of my projects that use MVC 3. That makes auto-complete not work. The program still runs, but it's quite annoying.

我已经有了 Web.config 并包含了所有必需的引用.其实我其他配置相同的项目都没有这个问题.

I already have the Web.config in place and included all required references. As a matter of fact, my other projects that have the same configuration do not have the problem.

除了检查 Web.config 和引用之外,我还遗漏了什么吗?

Am I missing anything other than checking the Web.config and references?

推荐答案

我遇到了同样的问题.当我从计算机上卸载(Microsoft ASP.NET MVC 3 - Visual Studio 2010 工具更新和 Microsoft ASP.NET MVC 3)补丁时.并重新安装 Microsoft ASP.NET MVC 3 - Visual Studio 2010 工具更新补丁.它像以前一样工作正常.

I got the same problem. When I Uninstall (Microsoft ASP.NET MVC 3 - Visual Studio 2010 Tools Update & Microsoft ASP.NET MVC 3) patches from the computer. and Re-Install the Microsoft ASP.NET MVC 3 - Visual Studio 2010 Tools Update Patch. It's working fine just like before.

这篇关于IntelliSense 不适用于 MVC Razor cshtml 页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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