.net - 从ASP.NET MVC 4更新到MVC 5的 View 中没有Intellisense

标签 .net asp.net-mvc visual-studio asp.net-mvc-4 intellisense

我刚刚将mvc4项目(使用vs2012)更新为mvc5。在遇到了很多与依赖项有关的问题之后,我终于找到了this tutorial并将其整理整齐,以便它可以毫无问题地进行构建。但是,我必须对任何 View (.cshtml文件)进行智能感知:@ using,@ model,@ html。 *,@styles ...无效。我一定打破了对razor View 引擎的引用,使其无法正确解析它们。我仔细检查了web.configs,什么也看不到。有任何想法吗?谢谢。

最佳答案

Visual Studio 2012的ASP.NET和Web工具2013.1已发布,应解决VS 2012的MVC5智能感知问题。

This release brings a ton of great improvements, and include some fantastic enhancements to ASP.NET MVC 5, Web API 2, Scaffolding and Entity Framework to users of Visual Studio 2012 and Visual Studio 2012 Express for Web.



您可以下载更新:http://blogs.msdn.com/b/webdev/archive/2013/11/18/announcing-release-of-asp-net-and-web-tools-2013-1-for-visual-studio-2012.aspx

关于.net - 从ASP.NET MVC 4更新到MVC 5的 View 中没有Intellisense,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19500371/

相关文章:

.net - .Net 中是否有与 HTML 等效的 XmlReader?

.net - 我们可以使用 wkhtmltopdf.exe 为 pdf 设置显示布局吗

c# - MVC中应该在哪里进行计算?

visual-studio - Visual Studio 2013.3 通过 Web 部署验证连接发布到 azure 网站失败,没有错误代码

c# - 如何避免实时 .NET 应用程序中的垃圾收集?

c# - 通过名称中止线程

asp.net-mvc - ASP.NET MVC 3 (Razor) Ajax.ActionLink - 我做错了什么?

c# - Net Core Connection String Dapper visual studio 2017

c# - "Debugging lambda expressions with Visual Studio"不再工作?

c++ - C/C++ - 预编译 header - 封装、如何以及为什么需要配置?