-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
System.Interactive.Async causes compile error for IAsyncEnumerable on .NET Core 3.0 #14239
Comments
@jnm2 This is a point in time issue that should go away once we implement #12047. We haven't started on that yet, and we are still in fact discussing how we are going to approach it. It is possible that upgrading the System.Interactive.Async dependency to a newer version will be part of the solution, but even this isn't certain yet. In the meantime, you can use full namespace (or namespace aliasing) to deambiguate. I will close this issue as duplicate of #12047. |
This is how it is done in this repo |
@divega Great to know it's getting attention! No hurry since it's a preview. I'll subscribe to that issue so I know when the friction is gone for this project. I don't think using a full namespace will disambiguate, by the way. This isn't the first time I'm had to hack up something just like https://github.com/aspnet/EntityFrameworkCore/blob/master/Directory.Build.targets and add extern aliases to loads of source files, so I now give that whole experience a very respectful berth. |
@jnm2 you are right, namespace aliasing isn't enough. Thanks @smitpatel for the assist. |
I recently had similar problem, with my netcoreapp3.1 project using EntityFrameworkCore (3.1.0) and IAsyncEnumerable interface.
In my case the problem was caused by using nuget restore command (not dotnet restore) and I had old version of nuget.exe. Upgrading to latest nuget.exe fixed the build. |
If you reference the type IAsyncEnumerable in a .NET Core 3.0 project that references Entity Framework Core, System.Interactive.Async causes a compile error:
Is there any chance that this has already been addressed in a preview feed of Entity Framework Core or System.Interactive.Async?
The text was updated successfully, but these errors were encountered: