toolset-vs2014_xp.targets 1.0 KB

123456789101112131415161718192021
  1. <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  2. <!-- Force TargetFrameworkVersion to v4.0 to support XP-->
  3. <PropertyGroup>
  4. <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
  5. <BeforeClCompileTargets>NoSupportCodeAnalysisXP;$(BeforeClCompileTargets)</BeforeClCompileTargets>
  6. </PropertyGroup>
  7. <Import Project="$(VCTargetsPath)\Microsoft.CppCommon.targets" />
  8. <Target Name="NoSupportCodeAnalysisXP" Condition="'$(ErrorNoSupportCodeAnalysisXP)' != 'false'">
  9. <VCMessage Condition="'$(DesignTimeBuild)' != 'true' and '@(ClCompile->AnyHaveMetadataValue('EnablePREfast', 'true'))'=='true'" Code="MSB8026" Type="Error"/>
  10. </Target>
  11. <PropertyGroup>
  12. <PrepareForBuildDependsOn>CheckWindowsSDK71A;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>
  13. </PropertyGroup>
  14. <Target Name="CheckWindowsSDK71A">
  15. <VCMessage Code="MSB8003" Type="Warning" Arguments="WindowsSdkDir_71A" Condition="'$(WindowsSdkDir_71A)'=='' and '$(UseEnv)' != 'true'" />
  16. </Target>
  17. </Project>