I've solved it!
The project was created when the computer didn't have MVC 4 installed yet. After installing it, for some reason, it kept working (despite this).
So what I did was make the changes that should be made in MVC 3 project after installing MVC 4: see here
After that, it compiled and the errors disappeared, however there was an error with the versions of some libraries (System.Web.WebPages
, System.Web.WebPages.Razor
, and some others). That turned out to be because they had Copy Local
set to True
. After changing that everything started working great.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…