Support Microsoft.Bcl.AsyncInterfaces (#151)

* Support Microsoft.Bcl.AsyncInterfaces

* Update Microsoft.Bcl.AsyncInterfaces version

* Use Condition
This commit is contained in:
彭伟
2021-11-03 10:38:28 +08:00
committed by GitHub
parent 4bdf8e3a2b
commit b9ceb93fe0
4 changed files with 27 additions and 11 deletions

View File

@@ -1,4 +1,3 @@
#if HAS_ASYNC_ENUMERATOR
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -63,4 +62,3 @@ namespace Ben.Demystifier.Test
}
}
}
#endif

View File

@@ -2,13 +2,14 @@
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5.0;net6.0</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net46</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net461</TargetFrameworks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\src\Ben.Demystifier\key.snk</AssemblyOriginatorKeyFile>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="'$(TargetFramework)' == 'net461' or '$(TargetFramework)' == 'netcoreapp2.1'" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
<PackageReference Include="xunit" Version="2.4.1" />