-
Notifications
You must be signed in to change notification settings - Fork 24
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
When support for .net core? #16
Comments
Edited, will not work in 2.0 either, see #16 (comment) below |
I'm trying to use this lib in netstandard2.0 preview1 project, but getting error at compile time
|
Type providers doesnt work in 2.0 either. |
I understand that I cant use type providers when targeting netstandard2.0. But shouldn't they work when I target net461?
|
@larjo Please add a bug at http://github.com/Microsoft/visualfsharp. This is likely to be a limitation of using the F# compiler when executing on .NET Core. |
@larjo The error is different when using .NET SDK 2.0 preview2, see dotnet/fsharp#3303 |
@larjo We have looked into this. You can use type providers with the new project file format when targeting net461, you just need to either compile using "msbuild", or apply the second workaround listed in dotnet/fsharp#3303 |
I tried the workaround documented in this dotnet/fsharp#3303 (comment) with WsdlService. The approach in that comment still fails for me, however the error is different from the other errors in that issue:
Is FS2024 happening primarily because the Type Providers in FSharp.Data.TypeProviders are not "cross targeting" like in the linked comment? I could not find a way to determine if they were or were not. I have a test repo https://github.com/gfritz/wsdlserviceapp and a README with steps and screenshots. |
Is there any update on this? - we have been using FSharp.Data extensively with dotnet core (mainly the type providers like CSV and XML provider) and then using the magic workaround dotnet/fsharp#3303 to keep the tooling happy. It all works, but only downside is lots of warnings every time you run the executable. Would be great to get a clean FSharp.Data build on dotnet core , Darren
|
Do you mean http://github.com/fsharp/FSharp.Data, rather than this set of (old) type providers? |
Ooops - yes ;) didnt notice I was in the wrong project. |
Note this is a very old collection of type providers that are Windows-specific and .NET Framework-specific. For up-to-date type providers see https://fsharp.org/guides/data-access/ For WSDL see https://github.com/fsprojects/FSharp.Data.WsdlProvider for a more recent provider, also https://github.com/fsprojects/SwaggerProvider |
When support for .net core?
The text was updated successfully, but these errors were encountered: