-
Notifications
You must be signed in to change notification settings - Fork 146
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
netcoreapp2.0 with Sql Server access fails to compile on Linux #499
Comments
If you clone this repo and run the example in tests core, does it work? |
I didn't run the example project but I would argue this is not going to be good test. Which is not how real project with PackageReference will look like. |
No, that wont be your compilation result. That is just compilation time reference. On Linux you compile the project with Mono, which still produces .Net coreapp dll at runtime. |
And yes, that is a hack (not the first one in Linux, thoigh) but I don't know the alternative until Mono will support .Net Standard libraries. Runtime should work on Linux/Win/Mac no matter what you used for the compilation. I did run the examples in my Ubuntu and the only hard one is SQLite compilation. |
You lost me a little bit. |
Assuming of course that I'll have |
No. Currently TypeProviders won't compile on Net Core. They compile on net4xx and Mono but do produce .Net core assemblies if that is your target. So at runtime you need .Net Standard version of SQLProvider but at compilation time you need net4xx version. For Windows this is not an issue because Net4xx is Net Standard compatible. It's a bit confusing. But start with the example at https://github.com/fsprojects/SQLProvider/blob/master/tests/SqlProvider.Core.Tests/Postgres/ |
Note that toolpath fsc is actually Mono fsharp. |
I'm trying the same thing but with MySql. But when building I get
I also added
but I'm guessing my project still uses the netcore dll of SqlProvider.
But I'm unable to force this using paket. |
I've added framework net451 to my |
@dmitry-a-morozov do you still have the original problem listed in this issue? |
@Thorium The issue haven't resolved for me.
to a project that consume the type provider? |
Yes. When I'll have more time, I'll make the instructions. But shortly: But on runtime you use They are both in the NuGet package. |
I don't use paket in my project. Also, how about #499 (comment) |
I think it's at ~/.nuget/packages/SQLProvider/ |
That worked ! Thanks You can close this issue in favor #498 . |
I have netcoreapp2.0 that uses SQLProvider to access Sql Server
It compiles and runs on Windows perfectly.
On Linux build fails with
F# compiler tooling redirection applied
The text was updated successfully, but these errors were encountered: