-
Notifications
You must be signed in to change notification settings - Fork 789
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
Missing method exception, .NET 5 #8881
Comments
In the rare cases that I had such exceptions, they were due to problems with assembly resolution (for instance, nugetting System.Memory and referencing System.Collections.Generic.Immutable leads to similar problems). Is it possible that that's the case here? The resolution on such cases can be to check if a specific version is referenced which is upwards incompatible. Then make it generic, and add a binding redirect to the higher version. (that's as a workaround, the error as displayed shouldn't appear at all, I think) |
I don't think so? This sample only references FSharp.Data.Npgsql, which depends on Npgsql and Npgsql.LegacyPostgis. |
Possibly related as well: #8913 I suspect there is a regression going on the core type provider mechanism that is leading to these issues |
I have observed the same behavior with VS 2019 preview, not using. Net 5, along with fsharp sql provider. Same code runs with normal vs and vs preview compiled code doesn't work. Using. Net core 3.1.102 sdk |
@OnurGumus , So I will need to see the failure to try and figure out wht SqlDataProvider and perhaps NPgsql have an issue. @kerams, I have not used postgressql in my life, however, I downloaded and installed it, but it complained about not having the postgres role. Could you provide me with a simple from the start set of install instructions, that will allow me to reproduce your issue. Thanks Kevin |
Actually Phillip, seems to have provided one here: #8743. |
@KevinRansom, yes, that one's for FSharp.Data. For FSharp.Data.Npgsql, just launch a Docker container (in WSL for instance) using |
@KevinRansom it's not dotNet problem. It's Visual studio preview problem. I have never installed dotnet 5. Same code runs fine when compiled with rtm but not when compiled with preview. Sample project https://github.com/OnurGumus/FBlazorShop |
@OnurGumus, I think the bug is in master branch and dev16.6 branch, the dev 16.5 branch doesn't have it. I have a suspicion about what caused it, and I will work on a fix this week. Kevin |
Create a console application targeting
netcoreapp5.0
, install the 5.0.100-preview.2.20176.6 SDK, and reference https://www.nuget.org/packages/FSharp.Data.Npgsql/0.2.6-beta. Finally make sure to have a live instance of Postgres available.dotnet run
this.Expected behavior
Program executes fine.
Actual behavior
Apologies if this turns out to be a problem in the type provider.
The text was updated successfully, but these errors were encountered: