My .props file contains an import of "$(VCTargetsPath12)Microsoft.Cpp.mfcDynamic.props", but in one project which I include the .props file, it already uses that file and I get the following warning:
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]
I saw this suggestion, but it doesn't work in this case as it is a system one that I will not modify. Though I did try:
<Import Project="$(VCTargetsPath12)Microsoft.Cpp.mfcDynamic.props" Condition=" '$(_PropertySheetDisplayName)' != 'Dynamic Link to MFC' " />
But it didn't work. Suggestions?