WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit cefc4dc

Browse files
committed
Do not build AsyncEnumerableExtensions on .NET 10
1 parent 1f20c55 commit cefc4dc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Directory.Build.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123

124124
<PropertyGroup
125125
Condition=" '$(TargetFrameworkIdentifier)' == '.NETCoreApp' And $([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '10.0')) ">
126+
<DefineConstants>$(DefineConstants);SUPPORTS_ASYNC_LINQ</DefineConstants>
126127
<DefineConstants>$(DefineConstants);SUPPORTS_RELAXED_URI_LIMITS</DefineConstants>
127128
</PropertyGroup>
128129

sandbox/OpenIddict.Sandbox.AspNetCore.Server/Helpers/AsyncEnumerableExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
namespace OpenIddict.Sandbox.AspNetCore.Server.Helpers;
1+
#if !SUPPORTS_ASYNC_LINQ
2+
namespace OpenIddict.Sandbox.AspNetCore.Server.Helpers;
23

34
public static class AsyncEnumerableExtensions
45
{
@@ -24,3 +25,4 @@ async Task<List<T>> ExecuteAsync()
2425
}
2526
}
2627
}
28+
#endif

0 commit comments

Comments
 (0)