Visual Studio 2012 asp net mvc 3 project razor view

喜欢而已 提交于 2019-11-30 22:39:10

Add <add key="webpages:Version" value="1.0" /> to <appSettings> in Web.config.

Otherwise, VS2012 will load Razor 2.0 in the editor, and the MVC config settings will not be applied.

Chris - Haddox Technologies

You will have to restart VS 2012 before the change takes effect.

I tried this solution when I had problem, as well as the one where you modify TExt Editor -> formating -> client tag but neither helped in my case. I started the installer once again after some time and hit the upgrade button. For some reason some of the components were not installed succesfully early on. Afterwards everything started working correctly so check that too :).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!