Directory.build.targets 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. <Project>
  2. <!-- This props all need to be set in targets as they depend on the values set earlier -->
  3. <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
  4. <DefineConstants>$(DefineConstants);NO_ARRAY_EMPTY;NO_CODE_COVERAGE_ATTRIBUTE;CRIPPLED_REFLECTION</DefineConstants>
  5. </PropertyGroup>
  6. <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.4'">
  7. <DefineConstants>$(DefineConstants);NO_CODE_COVERAGE_ATTRIBUTE;CRIPPLED_REFLECTION</DefineConstants>
  8. </PropertyGroup>
  9. <PropertyGroup Condition="'$(TargetFramework)' == 'net45'">
  10. <DefineConstants>$(DefineConstants);NO_ARRAY_EMPTY;NO_TASK_FROMEXCEPTION</DefineConstants>
  11. </PropertyGroup>
  12. <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
  13. <!--
  14. NB: USE_ASYNC_ITERATOR relies on members in the framework only present in .NET Core 3.0 Preview 2 at the moment:
  15. error CS0518: Predefined type 'System.Runtime.CompilerServices.AsyncIteratorMethodBuilder' is not defined or imported
  16. error CS0656: Missing compiler required member 'System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.*
  17. NB: AWAIT_USING_REQUIRES_IASYNCDISPOSABLE - See comments in AsyncEnumerableExtensions.cs.
  18. -->
  19. <DefineConstants>$(DefineConstants);USE_ASYNC_ITERATOR;HAS_ASYNCENUMERABLE;HAS_ASYNCDISPOSABLE;BCL_HAS_CONFIGUREAWAIT;AWAIT_USING_REQUIRES_IASYNCDISPOSABLE</DefineConstants>
  20. </PropertyGroup>
  21. <PropertyGroup>
  22. <DefineConstants>$(DefineConstants);USE_AWAIT_FOREACH</DefineConstants>
  23. </PropertyGroup>
  24. <PropertyGroup>
  25. <Product>$(AssemblyName) ($(TargetFramework))</Product>
  26. </PropertyGroup>
  27. </Project>