Reproduced in this article
1. Problem Description: If you use the Internet application as a template when building MVC with VS, the project is built and recompiled,
Pop-up error:
Solution: The problem came out, asked around a lot of people are confused, so all kinds of Google and Baidu, fortunately Kung Fu not bear! Finally found a solution, I wrote the proposal of predecessors to tidy up, for everyone to reference!
If you're creating a project with these errors, don't worry!
Step1: First close your application scenario, find projectname.csproj ProjectName is your actual application name under the folder where you saved the project.
Step2: Open With text editor you find it find <reference include= "System.Web.WebPages"/> <reference include= "System.Web.Helpers"/ >
Then replace the two code with the following: <reference include= "System.Web.WebPages, Version=1.0.0.0,culture=neutral, publickeytoken= 31bf3856ad364e35, Processorarchitecture=msil "/>
<reference include= "System.Web.Helpers, Version=1.0.0.0,culture=neutral, Publickeytoken=31bf3856ad364e35, Processorarchitecture=msil "/>
Then save! Then use vs to open the application recompile OK pass!
VS build MVC When using an Internet application as a template, the project is built and recompiled cannot be passed.