一般用VS2013打开VS2010的工程,都会有下面的提示
错误 1
error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be
found. To build using the v100 build tools, please install Visual Studio 2010 build tools.
Alternatively, you may upgrade to the current Visual Studio tools by selecting
the Project menu or right-click the solution, and then selecting "Upgrade
Solution...".C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets64
5 TN3_HOST_DEBUG
右键单击解决方案:升级
点击确定
又出现错误:
错误 1 error MSB8031: Building an MFC project for a non-Unicode character set is
deprecated. You must change the project property to Unicode or download an additional
library. See http://go.microsoft.com/fwlink/p/?LinkId=286820 for more information.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets 376 5
SpecialVH264
原因是字符编码不符合,要改为Unicode编码
解决:打开这个文件 项目名.vcxproj
把里面的所有 <CharacterSet>MultiByte</CharacterSet> 改为 <CharacterSet>Unicode</CharacterSet>
最后就可以了。