1-------------------------------------------------------
用记事本打开sln文件,找到第一行,将
microsoft visual studio solusion file,format version 10.0
# visual studio 2008
改为:
microsoft visual studio solusion file,format version 9.0
# visual studio 2005
2-------------------------------------------------------
用记事本打开csproj文件,在文件的开头删除这一行
<?xml version = 1.0 encoding="utf-8">
找到以下这个xml节点,
<Project toolversion = "3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
将这个属性
toolversion = "3.5"
删除
3------------------------------------------------------
找到以下节点
<Import Project="$(MSBuildToosBinPath)\Microsoft.CSharp.targets" />
改为
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
4 打完收功!