Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Polyfill/TaskWhenEachPolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#if !NET9_0_OR_GREATER && (NET5_0_OR_GREATER || NETCOREAPP3_0_OR_GREATER) && FeatureAsyncInterfaces

#if !NET9_0_OR_GREATER && FeatureAsyncInterfaces
namespace Polyfills;

using System;
Expand Down
5 changes: 2 additions & 3 deletions src/Tests/PolyfillTests_Task.cs
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,7 @@ public async Task WaitAsync_InfiniteTimeoutAndNoCancellation_ReturnsOriginalTask

#endregion

#if NET5_0_OR_GREATER || NETCOREAPP3_0_OR_GREATER

#if FeatureAsyncInterfaces
#region WhenEach Tests

[Test]
Expand Down Expand Up @@ -881,4 +880,4 @@ async Task<T> ThrowExceptionAsync<T>()

#endregion
}
#endif
#endif
1 change: 1 addition & 0 deletions src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<PackageReference Include="ProjectDefaults" PrivateAssets="all" />
<PackageReference Include="ProjectFiles" />
<PackageReference Include="System.Memory" Condition="$(TargetFrameworkIdentifier) == '.NETStandard' or $(TargetFrameworkIdentifier) == '.NETFramework' or $(TargetFramework.StartsWith('netcoreapp'))" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Condition="$(TargetFramework.StartsWith('net4')) OR $(TargetFramework) == 'netstandard2.0'"/>
<PackageReference Include="System.ValueTuple" Condition="$(TargetFramework.StartsWith('net46'))" />
<PackageReference Include="System.Net.Http" Condition="$(TargetFramework.StartsWith('net4'))" />
<PackageReference Include="System.Threading.Tasks.Extensions" Condition="$(TargetFramework) == 'netstandard2.0' or $(TargetFramework) == 'netcoreapp2.0' or $(TargetFrameworkIdentifier) == '.NETFramework'" />
Expand Down
Loading