Directory.build.targets 1.1 KB

1234567891011121314151617181920
  1. <Project>
  2. <!-- This has to be set in targets as the default props will overwrite -->
  3. <PropertyGroup>
  4. <DebugType Condition="'$(IsTestProject)' != 'true'">embedded</DebugType>
  5. </PropertyGroup>
  6. <!-- This props all need to be set in targets as they depend on the values set earlier -->
  7. <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
  8. <DefineConstants>$(DefineConstants);NO_ARRAY_EMPTY;NO_CODE_COVERAGE_ATTRIBUTE;CRIPPLED_REFLECTION;PLIB;SIGNED</DefineConstants>
  9. </PropertyGroup>
  10. <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.3' or '$(TargetFramework)' == 'netstandard1.4'">
  11. <DefineConstants>$(DefineConstants);NO_CODE_COVERAGE_ATTRIBUTE;CRIPPLED_REFLECTION;PLIB;SIGNED</DefineConstants>
  12. </PropertyGroup>
  13. <PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
  14. <DefineConstants>$(DefineConstants);HAS_APTCA;NO_ARRAY_EMPTY;DESKTOPCLR;DESKTOPCLR45;SIGNED</DefineConstants>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="'$(TargetFramework)' == 'net46'">
  17. <DefineConstants>$(DefineConstants);HAS_APTCA;DESKTOPCLR;DESKTOPCLR46;SIGNED</DefineConstants>
  18. </PropertyGroup>
  19. </Project>