我的.props文件包含“$(VCTargetsPath12)Microsoft.Cpp.mfcDynamic.props”的导入,但是在我包含.props文件的一个项目中,它已经使用了该文件,我收到以下警告:< / p>
D:\Projects\UnitTest\ab32\ab32.props(4,5): warning MSB4011: "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.mfcDynamic.props" cannot be imported again. It was already imported at "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Common.props (445,5)". This is most likely a build authoring error. This subsequent import will be ignored. [D:\Projects\UnitTest\ab32\ab32.vcxproj]
我看到了this suggestion,但在这种情况下它不起作用,因为它是一个我不会修改的系统。虽然我尝试过:
<Import Project="$(VCTargetsPath12)Microsoft.Cpp.mfcDynamic.props" Condition=" '$(_PropertySheetDisplayName)' != 'Dynamic Link to MFC' " />
但它没有用。建议?