VS2015与VS2010同时安装的问题(笔记)

问题原因:
        两个版本的用户属性表(Microsoft.Cpp.Win32.user.props)冲突导致。
        具体原因可以参考一下这个博客:http://blog.csdn.net/tianrolin/article/details/29208847(这个是先安装了低版本再安装高版本的,与我的情况不同,所以看一下即可)

解决方案:
        使用记事本打开:C:\Users\<用户名>\AppData\Local\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props
        找到VS2010的默认用户属性表,往上面补充。(也就是说,原来的属性表没有的项目,从这个默认属性表上粘贴过去)

VS2010的默认用户属性表:
XML/HTML code
?
1
2
3
4
5
6
7
8
9
10
11
12
<? xml  version = "1.0"  encoding = "utf-8" ?>
< Project  DefaultTargets = "Build"  ToolsVersion = "4.0"  xmlns = "http://schemas.microsoft.com/developer/msbuild/2003" >
   < ImportGroup  Label = "PropertySheets"  />
   < PropertyGroup >
     < ExecutablePath >$(VCInstallDir)bin;$(WindowsSdkDir)bin\NETFX 4.0 Tools;$(WindowsSdkDir)bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)\bin;$(MSBuildToolsPath32);$(VSInstallDir);$(SystemRoot)\SysWow64;$(FxCopDir);$(PATH);</ ExecutablePath >
     < IncludePath >$(IncludePath)</ IncludePath >
     < ReferencePath >$(VCInstallDir)atlmfc\lib;$(VCInstallDir)lib</ ReferencePath >
     < LibraryPath >$(LibraryPath)</ LibraryPath >
     < SourcePath >$(VCInstallDir)atlmfc\src\mfc;$(VCInstallDir)atlmfc\src\mfcm;$(VCInstallDir)atlmfc\src\atl;$(VCInstallDir)crt\src;</ SourcePath >
     < ExcludePath >$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(FrameworkSDKDir)\include;$(MSBuildToolsPath32);$(VCInstallDir)atlmfc\lib;$(VCInstallDir)lib;</ ExcludePath >
   </ PropertyGroup >
</ Project >
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值