浏览代码

Enable use of EnumeratorCancellation.

Bart De Smet 5 年之前
父节点
当前提交
c89ffe53e1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Ix.NET/Source/Directory.build.targets

+ 3 - 0
Ix.NET/Source/Directory.build.targets

@@ -27,6 +27,9 @@
   <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0' or '$(TargetFramework)' == 'netstandard2.1' or '$(TargetFramework)' == 'netstandard2.0'">
     <DefineConstants>$(DefineConstants);HAS_VALUETUPLE</DefineConstants>
   </PropertyGroup>
+  <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0' or '$(TargetFramework)' == 'netstandard2.1'">
+    <DefineConstants>$(DefineConstants);HAS_ASYNC_ENUMERABLE_CANCELLATION</DefineConstants>
+  </PropertyGroup>
 
   <PropertyGroup>
     <Product>$(AssemblyName) ($(TargetFramework))</Product>