剃刀语法高亮不VS 2012的工作与MVC 5 [英] Razor syntax highlighting not working in VS 2012 with MVC 5

查看:222
本文介绍了剃刀语法高亮不VS 2012的工作与MVC 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与MVC 5 RC 1玩弄在Visual Studio 2013 RC。工作得很好。

I'm playing around with MVC 5 RC 1 in Visual Studio 2013 RC. Works very well.

现在我升级现有的MVC 4项目MVC 5同样的方式<一个href=\"http://egypt.silverkeytech.com/blogs/third-world/2013/8/how-to-use-aspnet-mvc-5-RC1-in-your-visual-studio-2012\">here

Now I upgraded an existing MVC 4 project in VS 2012 to MVC 5 the same way as described here

我也改在web.config(S) - 见<一个href=\"http://stackoverflow.com/questions/17454852/upgrading-from-mvc4-to-mvc5-$p$p-release\">upgrading从MVC4到MVC5 pre-发布

I also changed the web.config(s) - see "upgrading from MVC4 to MVC5 pre-Release"

一切(建设,运行Web应用程序,甚至是智能感知)完美的作品,除了剃须刀/ C#code的意见语法高亮。

Everything (build, run web app, even intellisense) works perfectly except the syntax highlighting of Razor/C# code in views.

我也与2013年VS结果相同创建了一个MVC 5项目试了一下。所以我想VS 2012不理解的新组件?

I also tried it with an MVC 5 project created in VS 2013. Same result. So I assume VS 2012 doesn't "understand" the new assemblies?!

任何已知的解决方法或想法,让高亮回去?

Any known workaround or ideas to get highlighting back?

推荐答案

微软发布的ASP.NET Web工具的新版本为VS 2012。
安装后的语法高亮又回来了。

Microsoft released a new version of ASP.NET Web Tools for VS 2012. After installing syntax highlighting is back again.

<一个href=\"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\" rel=\"nofollow\">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

安装VS 2012更新4是不够的。

Installing VS 2012 Update 4 was not enough.

一套离线安装的是可用的。离线安装更容易比Web平台工具调用(WebNode11Pack.exe @〜114KB)使用方法:

如果你想要一个离线安装,那么请转到的http:/ /www.microsoft.com/en-us/download/details.aspx?id=41532

If you want an offline installer then please goto http://www.microsoft.com/en-us/download/details.aspx?id=41532


  • AspNetWebTools2013_1Setup.exe @〜39MB

  • WebToolsExtensionsVS.msi(适用于Visual Studio 2012的标准版[S] )@〜21MB

  • WebToolsExtensionsVWD.msi(适用于Visual Studio 2012的免费网络版[S] )@〜21MB

  • AspNetWebTools2013_1Setup.exe @ ~39MB
  • WebToolsExtensionsVS.msi (for Visual Studio 2012 standard edition[s]) @ ~21MB
  • WebToolsExtensionsVWD.msi (for Visual Studio 2012 free "Web" edition[s]) @ ~21MB
  • 这篇关于剃刀语法高亮不VS 2012的工作与MVC 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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