You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the project references both Theraot.Core and Microsoft.Bcl.AsyncInterfaces packages there's Error CS0433 The type 'IAsyncEnumerable<T>' exists in both assemblies error when using the IAsyncEnumerable<T> type
NB1: the reference may be transitive. As example, SomeProject -> System.Text.Json -> Microsoft.Bcl.AsyncInterfaces.
NB2: the issue may be workarounded with aliases for unneeded assembly,
But it may be a good idea to use the Microsoft.Bcl.AsyncInterfaces in Theraot.Core, as it is done with Microsoft.Bcl.HashCode package
UPD: I've just discovered the IAsyncEnumerable<T> is not available when targeting net48. I'm not sure if I should report it as a separate issue as it'll be fixed automatically after referencing the Microsoft.Bcl.AsyncInterfaces. Extracted to #197
If the project references both Theraot.Core and Microsoft.Bcl.AsyncInterfaces packages there's
Error CS0433 The type 'IAsyncEnumerable<T>' exists in both assemblies
error when using theIAsyncEnumerable<T>
typeNB1: the reference may be transitive. As example,
SomeProject -> System.Text.Json -> Microsoft.Bcl.AsyncInterfaces
.NB2: the issue may be workarounded with aliases for unneeded assembly,
But it may be a good idea to use the
Microsoft.Bcl.AsyncInterfaces
in Theraot.Core, as it is done with Microsoft.Bcl.HashCode packageUPD: I've just discovered the. Extracted to #197IAsyncEnumerable<T>
is not available when targeting net48. I'm not sure if I should report it as a separate issue as it'll be fixed automatically after referencing theMicrosoft.Bcl.AsyncInterfaces
Repro:
Program.cs:
ConsoleApp.csproj:
The text was updated successfully, but these errors were encountered: