Recently installed in Visual Studio 2015, opened before vs2013 created MVC4 Project Discovery can not compile through, prompt system.web.mvc,system.web.webpages and so on cannot find, online search no fruit, It is possible to implement it through a standalone installation package.
Download it from the link below
ASP. NET MVC 4 for Visual Studio SP1 and visual Web Developer SP1
After installation is sure to have a few places no problem, but only System.Web.MVC this reference has a yellow exclamation mark, can not be compiled through.
By looking at the reference discovery, the System.Web.MVC version is 4.0.0.0, and the project references 4.0.0.1. I intend to change the reference to 4.0.0.0, but afraid of problems, although there is no problem.
Look for an upgrade package first.
Ah ha, there really is an upgrade package, but look at the description did not mention 4.0.0.1, regardless of the loading test.
This security update resolves security vulnerability ms14-059 for Microsoft ASP 2.0, MVC 3.0, MVC 4.0, MVC 5.0, and MVC 5.1 (KB2990942)
Remember to choose 1.2M aspnetmvc4.msi 4 Download OH
Install finished, then open VS2015, compile, build successfully.
If you encounter MVC3,MVC5 can not use the situation, you can also try oh, but to find the corresponding version of the installation package yo
Original: Http://www.tuicool.com/articles/MVV7va
Let visual Studio 2015 support ASP. MVC4.0.0.1