-
Notifications
You must be signed in to change notification settings - Fork 71
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
.NET Core + Type Providers #206
Comments
The complaint about |
Does the type provider work correctly in an F# Interactive session outside of IFSharp? My understanding is that each of the parts is only recently working on .NET Core. Getting this working also would be great! |
The main difference I can see between
I'm guessing this is thrown in
Not entirely sure what the |
Turns out this might have been key. I added a forced reference to It still requires the manual loading of some additional libraries, and Intellisense is still complaining about missing "netstandard.dll", but the functionality works :) I'll submit a PR soon. Edit: Ignore this comment it, the error was only the intellisense / typechecking and not an issue with the execution. The highlighting issue is not solved. |
Should libraries which are normally loaded during common projects such as "System.Runtime.Extensions.dll" be loaded by default though? Especially if they are needed by something like Type providers? |
I've add the automatic referencing of netstandard in #218 so the highlighting issue should be solved. I'm not sure the right answer about automatically referencing other libraries, it's convenient but may turn out problematic and a breaking change if we have to withdraw it later... |
Btw I also made the Paket helper script work better in netcore, it might help getting the right dlls referenced too. |
I gave this a go with the latest and it seems to working for me now: The error highlighting looks to be a false positive: Based on this issue: dotnet/fsharp#6688 it may not be anything specific to IF# |
I suppose a lot of this may be redundant with dotnet/fsharp#5850. |
Yes, I'm very hopeful about that change to #r. We could also potentially just use FAKE's current syntax which implements an approximation to it: #112 (comment) which now supports unmanaged references too. |
Description
There is some issue loading the correct libraries to use Type Providers on .NET Core. While this is directly relevant to Type Providers, the issue itself is broader and should be solved.
Repro steps
Run the following code:
The problem can slightly be improved by manually loading some further libraries:
This still yields the error:
Known workarounds
Not known yet.
Related information
The text was updated successfully, but these errors were encountered: