问题
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