fsprojects / SQLProvider

A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides.
https://fsprojects.github.io/SQLProvider
Other
570 stars 144 forks source link

FSC : error FS0226: The file extension of 'C:\Program Files\dotnet\sdk\3.0.100\FSharp\fsc.exe' is not recognized. Source files must have extension .fs, .fsi, .fsx, .fsscript, .ml or .mli. #655

Closed DavidSSL closed 4 years ago

DavidSSL commented 4 years ago

Description

I am currently unable to build my project using the instructions regarding SqlProvider and Postgres which seem to be out of date since it was using the fsc workaround.

Repro steps

As mentioned above, the instructions are here

The build step is where it fails with error given in the title

Expected behavior

I should be able to build the project.

Related information

Here's the output of dotnet --info

.NET Core SDK (reflecting any global.json): Version: 3.0.100 Commit: 04339c3a26

Runtime Environment: OS Name: Windows OS Version: 10.0.18362 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.0.100\

Host (useful for support): Version: 3.0.0 Commit: 7d57652f33

================== I believe that there are problems with .net core 3 and the type provider.

However are there any up to date instructions on what to do in order to get SqlProvider running with Postgres on .net framework/Mono on Microsoft/Linux?

DavidSSL commented 4 years ago

Found the answer to this https://github.com/fsprojects/SQLProvider/issues/575#issuecomment-506334010