Description
This is a friendly notice
When retargeting third party application to .NET 10, we need to add all for System.Linq.Async nuget package due to this breaking change: docs/docs/core/compatibility/core-libraries/10.0/asyncenumerable.md at main · dotnet/docs
But the application build failed with “ error CS1061:‘IAsyncEnumerable' does not contain a definition for 'SelectAwaitWithCancellation' and no accessible extension method 'SelectAwaitWithCancellation' accepting a first argument of type 'IAsyncEnumerable' could be found (are you missing a using directive or an assembly reference?)” after adding above settings for System.Linq.Async nuget package.
After investigating, it caused by the breaking change for .NET 10 dotnet/docs#44886.
Please refer to dotnet/runtime#114006 to get details
To Reproduce
1.retarget "src/Directory.Build.props" to net10.0
2.add the following code to "src\Directory.Build.targets"
<PropertyGroup> <TreatWarningsAsErrors>false</TreatWarningsAsErrors> </PropertyGroup>
3.add the following code to src\KurrentDB.Core\KurrentDB.Core.csproj
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.3.14"> <ExcludeAssets>all</ExcludeAssets> </PackageReference>
4.cd to "src\KurrentDB.Core" folder
5.run command: dotnet publish
it will be showing error as below