Current location - Quotes Website - Collection of slogans - Vs20 13 failed to load the web project.
Vs20 13 failed to load the web project.
Notepad opens the project Web.csproj will

& lt import project ="$(MSBuildBinPath)\Microsoft. cs harp . targets "/& gt;

& ltimport Project = " $(msbuildextensionspath 32)\ Microsoft \ visual studio \ v 10.0 \ web applications \ Microsoft。 web application . targets "/& gt;

Replace with

& lt import project ="$(MSBuildBinPath)\Microsoft. cs harp . targets "/& gt;

& ltimport Project = " $(msbuildextensionspath 32)\ Microsoft \ visual studio \ v 10.0 \ web applications \ Microsoft。 Webapplication. targets "condition ="' $ (solution. vs version)' = = ' 8.0 ' "/& gt;

& ltimport Project = " $(MSBuildExtensionsPath)\ Microsoft \ visual studio \ v 9.0 \ web applications \ Microsoft。 Webapplication. targets "condition ="' $ (solution. vs version)' = = ' 9.0 ' "/& gt;

Just reload the project.

The key here is to match the corresponding version, and then add the following condition = "'$ (solution. Vs version)' = =' 8.0' ",because my project is

& ltimport Project = " $(msbuildextensionspath 32)\ Microsoft \ visual studio \ v 1 1.0 \ web applications \ Microsoft。 web application . targets "/& gt;

So it should be changed to:

& ltimport Project = " $(msbuildextensionspath 32)\ Microsoft \ visual studio \ v 1 1.0 \ web applications \ Microsoft。 Webapplication. targets "condition ="' $ (solution. vs version)' = = ' 1 1.0 ' "/& gt;

Then load, and encountered the previous problem, but slightly different, this time changed the port number:

The port is also corresponding, just reload it.

Last question: Because it is an old project, it may be developed under VS2005 or VS2008. Now open it under VS20 13, and the environment will automatically upgrade the code for you.

However, the following problems occurred after the upgrade: 4.0 should be manually configured after the project is loaded.

It is said on the Internet that it is of little use to configure something in the attribute, because it is already 4.0 in the attribute. If you find the answer again, it will still be in the applicationhost.config.

Application Pool: Application Pool.

CLR2/VS2005, CLR3.5/VS2008 and CLR4/VS20 10.

And then put the original configuration

Just open the project again.