MVC 5.2.2.0: @Scripts.Render(…) not recognized

与世无争的帅哥 提交于 2020-01-16 00:55:10

问题


I've recently upgraded my Visual Studio to update 4 (2013) and apparently my MVC version has been upgraded as well. The problem is that, I can no longer use the @Scripts.Render because it does not recognize the Scrripts type and it says it does not exist. I know that it is from System.Web.Optimization but the Optimization namespace is also missing.

Why I'm using @Scripts is because of client-side validation and before this upgrade I had no issue with that. So is that a bug or has Microsoft made some changes to the new MVC version that this Script.Render method is no longer supported?

来源:https://stackoverflow.com/questions/28302884/mvc-5-2-2-0-scripts-render-not-recognized

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