Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The System.Linq.Dynamic.Core package throw compilation errors about ambiguities related to System.Linq when retarget app to .NET10 #899

Open
CancanTang opened this issue Feb 18, 2025 · 0 comments
Assignees

Comments

@CancanTang
Copy link

CancanTang commented Feb 18, 2025

Description :
According to dotnet/docs#44886 , .NET 10 now includes the AsyncEnumerable class, which provides a full set of Language Integrated Query (LINQ) extension methods for the IAsyncEnumerable type. As a result, applications that currently reference the System.Linq.Async package may get compilation errors about ambiguities, due to extension methods with the same signatures being provided both by the old System.Linq.Async library and by the built-in support.

After use the workaround mentioned the in dotnet/docs#44886, the SmartStore app (https://github.com/smartstore/Smartstore) that uses System.Linq.Dynamic.Core will get below new error:

CS1503: Argument 3: cannot convert from 'System.Threading.CancellationToken' to 'System.Collections.Generic.IEqualityComparer<TKey>?'
CS1503: Argument 3: cannot convert from 'System.Func<TSource, TElement>' to 'System.Collections.Generic.IEqualityComparer<TKey>?'
CS1061: 'IAsyncEnumerable<T>' does not contain a definition for 'WhereAwait' and no accessible extension method 'WhereAwait' accepting a first argument of type 'IAsyncEnumerable<T>' could be found (are you missing a using directive or an assembly reference?)
CS1061: 'IAsyncEnumerable<TSource>' does not contain a definition for 'SelectAwait' and no accessible extension method 'SelectAwait' accepting a first argument of type 'IAsyncEnumerable<TSource>' could be found (are you missing a using directive or an assembly reference?)
CS1929: 'IAsyncEnumerable<IFile>' does not contain a definition for 'SumAsync' and the best extension method overload 'AsyncEnumerable.SumAsync(IAsyncEnumerable<decimal>, CancellationToken)' requires a receiver of type 'System.Collections.Generic.IAsyncEnumerable<decimal>'
CS1744: Named argument 'cancellationToken' specifies a parameter for which a positional argument has already been given

please refer to dotnet/runtime#112462 get details

`

@CancanTang CancanTang changed the title The System.Linq.Dynamic.Core package throw CS0121 and CS0428 System.Linq errors when retarget smartstore to .NET10 The System.Linq.Dynamic.Core package throw compilation errors about ambiguities related to System. Linq when retarget app to .NET10 Feb 18, 2025
@StefH StefH self-assigned this Feb 26, 2025
@StefH StefH changed the title The System.Linq.Dynamic.Core package throw compilation errors about ambiguities related to System. Linq when retarget app to .NET10 The System.Linq.Dynamic.Core package throw compilation errors about ambiguities related to System.Linq when retarget app to .NET10 Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants