-
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
Can't get the most basic example in docs to compile #248
Comments
This is really messy from the current whole .NET infrastructure side:
This all leads towards "ok let's build this for all the frameworks ever" which just bloats people's nuget-cache with duplicate code. |
@Thorium what is the solution? provide binaries for |
Maybe. Which previous version had typeprovider dlls in net6.0? |
libs always (after migration from the full framework) was during migration from |
This conversation in this issue is based on hypothesis that the migration actually broke the .net6 which can be by @pracplayopen trying to use SwaggerProvider v.2.0.0 instead of current 2.1.3, as that was using .NET6. As far as I understand:
|
pretty sure netstandard isn't an implementation and has no single set of binaries/libraries. have no issues building against the library as is, as long as i don't use the types which are missing. could test it against 8.0, but w/such a basic thing not working easier to just take your word for it for now. so this isn't resolved but just not a good use of time right now unfortunately. perhaps will revisit later in quarter but thinking we might just go another route that doesn't require this feature at all. thx for quick response and contextualized comments from all. |
@pracplayopen Can you try the most basic sample with SwaggerProvider version 2.0.0 ? Just to be sure this is not e.g. some Ubuntu related problem? |
yes, will try again w/ v2.0 |
Description
Can't get the most basic example in docs to compile
Repro steps
Please provide the steps required to reproduce the problem
Add reference to SwaggerProvider (using 2.1.3)
use this code straight from the docs:
https://fsprojects.github.io/SwaggerProvider/#/
Expected behavior
Would expect this to compile, but it does not.
(this is not my swagger url obviously, but it doesn't matter what url you use since it doesn't compile)
Actual behavior
Compiler gives error 'OpenApiClientProvider was not defined'
Known workarounds
Please provide a description of any known workarounds.
should also note that when browsing the assembly, don't see a class named: OpenApiClientProvider.
tried uninstalling and reinstalling the pkg, but same error.
is the documentation no longer correct? is there a working example somewhere else?
Affected Type Providers
Related information
$ dotnet --list-runtimes
Microsoft.AspNetCore.App 6.0.35 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.19 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.35 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.19 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
The text was updated successfully, but these errors were encountered: