Directory.build.targets 1.8 KB

12345678910111213141516171819202122232425262728293031
  1. <Project>
  2. <!-- This has to be set in targets as the default props will overwrite -->
  3. <PropertyGroup>
  4. <DebugType>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.3'">
  8. <DefineConstants>$(DefineConstants);NO_CODE_COVERAGE_ATTRIBUTE;HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING;NO_SERIALIZABLE;CRIPPLED_REFLECTION</DefineConstants>
  9. </PropertyGroup>
  10. <PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
  11. <DefineConstants>$(DefineConstants);HAS_WINRT;PREFER_ASYNC;DESKTOPCLR</DefineConstants>
  12. </PropertyGroup>
  13. <PropertyGroup Condition="'$(TargetFramework)' == 'net46'">
  14. <DefineConstants>$(DefineConstants);HAS_WINRT;PREFER_ASYNC;HAS_TPL46;DESKTOPCLR</DefineConstants>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="'$(TargetFramework)' == 'uap10.0'">
  17. <DefineConstants>$(DefineConstants);NO_CODE_COVERAGE_ATTRIBUTE;HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING;NO_SERIALIZABLE;CRIPPLED_REFLECTION;NO_THREAD;WINDOWS</DefineConstants>
  18. </PropertyGroup>
  19. <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp1.0' or '$(TargetFramework)' == 'netcoreapp1.1'">
  20. <DefineConstants>$(DefineConstants);HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING;NO_SERIALIZABLE;CRIPPLED_REFLECTION</DefineConstants>
  21. </PropertyGroup>
  22. <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0' or '$(TargetFramework)' == 'netcoreapp2.0'">
  23. <DefineConstants>$(DefineConstants);HAS_WINRT;PREFER_ASYNC;HAS_TPL46;NO_REMOTING</DefineConstants>
  24. </PropertyGroup>
  25. <!-- UWP -->
  26. <ItemGroup Condition=" '$(TargetFramework)' == 'uap10.0' ">
  27. <PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="5.2.3" />
  28. </ItemGroup>
  29. </Project>