-
Notifications
You must be signed in to change notification settings - Fork 57
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
Could not load System.Text.Json 7.0.0.0 #213
Comments
Can you please try |
Yes that does seem to help, thank you |
Although in Rider I keep getting error messages like this when trying to call an endpoint:
Any ideas why there might be a type mismatch there? |
It is FSI/F# Interactive or compiled binary? |
Compiled |
"The type X is not compatible with the type X" is typically that you defined type X in 2 different source-code paths, and A and B and then you make a function the takes A as parameter and you try to plug-in the type B when calling the function. |
Do you think that it is the caching issue of ProvidedTypes? https://github.com/fsprojects/SwaggerProvider/blob/master/src/SwaggerProvider.DesignTime/Caching.fs |
I don't: As far as I know TypeProviders, I rather think (as a very wild guess, I've not seen this issue) that some source-file could be "included as a link" and thus defined both in design-time and runtime as a separate type. (The other option would be that it's loaded separately twice for different target frameworks which are actually compatible.) If that's the case, then the type should be probably defined in runtime only and referenced from runtime by the design-time. |
Description
Hello, starting a new project and trying to use SwaggerProvider and following the getting started docs I get an error of:
when I try to init the first provider.
Repro steps
Start a new project, install SwaggerProvider 2.0.0-beta7. Follow the getting started docs, see error
This happens with both
SwaggerClientProvider
andOpenApiClientProvider
here is my fsproj file
Expected behavior
No error for missing dependencies
Actual behavior
Error showing that missing dependency and when explicitly installing that dependency the error still does not go away
Known workarounds
None that I know of, I can not get it to work.
Affected Type Providers
Related information
The text was updated successfully, but these errors were encountered: