我有许多针对.Net 4.6和一个本地C++项目(无CLR)的C#项目的解决方案。在VS2015中使用该解决方案后,我现在在尝试打开VS2013中的解决方案时出现错误,一半项目未能加载。对于VS2013中的.Net 4.6的某些项目,项目加载失败
本地C++项目和一些C#项目给出错误:
error : A numeric comparison was attempted on "$(TargetPlatformVersion)" that evaluates to "10.0.10069.0" instead of a number, in condition "'$(TargetPlatformVersion)' > '8.0'". C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
我不知道为什么有些项目正确加载和其他人不这样做,但是,它看起来像所有的C#项目哪些参考NuGet包失败。
有没有办法解决这些错误,并允许在VS2013和VS2015中打开解决方案和项目?
此答案主要针对C++。我遇到了同样的C#错误消息,其中之前不成功的更新可能会损坏MSBuild 12.修复程序是修复Visual Studio 2013 Update 5. –
我可以删除WindowsTargetPlatformVersion吗? – lindexi