|
2 | 2 |
|
3 | 3 | <PropertyGroup> |
4 | 4 | <TargetFrameworks>netstandard2.0;$(NetFrameworkMinimum);netstandard2.1</TargetFrameworks> |
5 | | - <UseCompilerGeneratedDocXmlFile>false</UseCompilerGeneratedDocXmlFile> |
6 | 5 | <IsPackable>true</IsPackable> |
7 | 6 | <!-- This assembly should never be placed inbox as it is only for downlevel compatibility. --> |
8 | | - <PackageDescription>Provides the IAsyncEnumerable<T> and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0. |
9 | | - |
10 | | -Commonly Used Types: |
11 | | -System.IAsyncDisposable |
12 | | -System.Collections.Generic.IAsyncEnumerable |
13 | | -System.Collections.Generic.IAsyncEnumerator</PackageDescription> |
| 7 | + <PackageDescription>Provides the IAsyncEnumerable<T> and IAsyncDisposable interfaces and helper types for .NET Standard 2.0. This package is not required starting with .NET Standard 2.1 and .NET Core 3.0.</PackageDescription> |
14 | 8 | </PropertyGroup> |
15 | 9 |
|
16 | | - <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. --> |
17 | | - <PropertyGroup> |
18 | | - <IsPartialFacadeAssembly Condition="'$(TargetFramework)' == 'netstandard2.1'">true</IsPartialFacadeAssembly> |
19 | | - </PropertyGroup> |
| 10 | + <Choose> |
| 11 | + <When Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))"> |
| 12 | + <ItemGroup> |
| 13 | + <Compile Include="Microsoft.Bcl.AsyncInterfaces.Forwards.cs" /> |
| 14 | + </ItemGroup> |
| 15 | + </When> |
20 | 16 |
|
21 | | - <ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true'"> |
22 | | - <Compile Include="System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs" /> |
23 | | - <Compile Include="System\Runtime\CompilerServices\AsyncIteratorMethodBuilder.cs" /> |
24 | | - <Compile Include="$(CoreLibSharedDir)\System\Collections\Generic\IAsyncEnumerable.cs"> |
25 | | - <Link>System.Private.CoreLib\System\Collections\Generic\IAsyncEnumerable.cs</Link> |
26 | | - </Compile> |
27 | | - <Compile Include="$(CoreLibSharedDir)\System\Collections\Generic\IAsyncEnumerator.cs"> |
28 | | - <Link>System.Private.CoreLib\System\Collections\Generic\IAsyncEnumerator.cs</Link> |
29 | | - </Compile> |
30 | | - <Compile Include="$(CoreLibSharedDir)\System\IAsyncDisposable.cs"> |
31 | | - <Link>System.Private.CoreLib\System\IAsyncDisposable.cs</Link> |
32 | | - </Compile> |
33 | | - <Compile Include="$(CoreLibSharedDir)\System\Runtime\CompilerServices\AsyncIteratorStateMachineAttribute.cs"> |
34 | | - <Link>System.Private.CoreLib\System\Runtime\CompilerServices\AsyncIteratorStateMachineAttribute.cs</Link> |
35 | | - </Compile> |
36 | | - <Compile Include="$(CoreLibSharedDir)\System\Runtime\CompilerServices\ConfiguredAsyncDisposable.cs"> |
37 | | - <Link>System.Private.CoreLib\System\Runtime\CompilerServices\ConfiguredAsyncDisposable.cs</Link> |
38 | | - </Compile> |
39 | | - <Compile Include="$(CoreLibSharedDir)\System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs"> |
40 | | - <Link>System.Private.CoreLib\System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs</Link> |
41 | | - </Compile> |
42 | | - <Compile Include="$(CoreLibSharedDir)\System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs"> |
43 | | - <Link>System.Private.CoreLib\System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs</Link> |
44 | | - </Compile> |
45 | | - <Compile Include="$(CoreLibSharedDir)\System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs"> |
46 | | - <Link>System.Private.CoreLib\System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs</Link> |
47 | | - </Compile> |
| 17 | + <Otherwise> |
| 18 | + <ItemGroup> |
| 19 | + <Compile Include="System\Threading\Tasks\Sources\ManualResetValueTaskSourceCore.cs" /> |
| 20 | + <Compile Include="System\Runtime\CompilerServices\AsyncIteratorMethodBuilder.cs" /> |
48 | 21 |
|
49 | | - </ItemGroup> |
| 22 | + <Compile Include="$(CoreLibSharedDir)System\Collections\Generic\IAsyncEnumerable.cs" Link="System.Private.CoreLib\System\Collections\Generic\IAsyncEnumerable.cs" /> |
| 23 | + <Compile Include="$(CoreLibSharedDir)System\Collections\Generic\IAsyncEnumerator.cs" Link="System.Private.CoreLib\System\Collections\Generic\IAsyncEnumerator.cs" /> |
| 24 | + <Compile Include="$(CoreLibSharedDir)System\IAsyncDisposable.cs" Link="System.Private.CoreLib\System\IAsyncDisposable.cs" /> |
| 25 | + <Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\AsyncIteratorStateMachineAttribute.cs" Link="System.Private.CoreLib\System\Runtime\CompilerServices\AsyncIteratorStateMachineAttribute.cs" /> |
| 26 | + <Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\ConfiguredAsyncDisposable.cs" Link="System.Private.CoreLib\System\Runtime\CompilerServices\ConfiguredAsyncDisposable.cs" /> |
| 27 | + <Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs" Link="System.Private.CoreLib\System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs" /> |
| 28 | + <Compile Include="$(CoreLibSharedDir)System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs" Link="System.Private.CoreLib\System\Threading\Tasks\TaskAsyncEnumerableExtensions.cs" /> |
| 29 | + <Compile Include="$(CoreLibSharedDir)System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs" Link="System.Private.CoreLib\System\Runtime\CompilerServices\EnumeratorCancellationAttribute.cs" /> |
| 30 | + </ItemGroup> |
50 | 31 |
|
51 | | - <ItemGroup Condition="'$(IsPartialFacadeAssembly)' != 'true'"> |
52 | | - <PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" /> |
53 | | - </ItemGroup> |
| 32 | + <ItemGroup> |
| 33 | + <PackageReference Include="System.Threading.Tasks.Extensions" Version="$(SystemThreadingTasksExtensionsVersion)" /> |
| 34 | + </ItemGroup> |
| 35 | + </Otherwise> |
| 36 | + </Choose> |
54 | 37 |
|
55 | 38 | </Project> |
0 commit comments