fsprojects / FSharp.Data.SqlClient

A set of F# Type Providers for statically typed access to MS SQL database
http://fsprojects.github.io/FSharp.Data.SqlClient/
Other
205 stars 71 forks source link

cannot build netstandard2.0 project with the dotnet SDK build #366

Open jackfoxy opened 4 years ago

jackfoxy commented 4 years ago

Description

Cannot build as a netstandard2.0 project with the dotnet SDK build.

Repro steps

I have a test project where various SDK versions can be tried.

https://github.com/jackfoxy/TestSqlClient

Known workarounds

Build in Visual Studio 16.3.8 does work. I have tried Visual Studio 16.4 previews, and they do not build.

Related information

Note in the readme.md file the evolution of error and warning messages produced over the most recent dotnet SDK versions. SDKS prior to 2.1.301 will not even run the build.

`paket install gives a warning

Could not detect any platforms from 'typeproviders' in E:\GitRepos\TestSqlClient\packages\FSharp.Data.SqlClient\lib\typeproviders\fsharp41\net461\FSharp.Data.SqlClient.DesignTime.dll', please tell the package authors

related issues

https://github.com/fsprojects/FSharp.Data.SqlClient/issues/318

https://github.com/fsprojects/FSharp.Data.SqlClient/issues/337

https://github.com/fsprojects/FSharp.Data.SqlClient/issues/361

MarneeDear commented 4 years ago

Hi Jack!

Also related #373 .

It looks like the workaround is to continue using fsc.props. You'll find more details in #373.

melanore commented 4 years ago

https://github.com/demetrixbio/FSharp.Data.Npgsql is very similar to FSharp.Data.SqlClient. We recently migrated to netstandard2.0 without any net461 dependencies. It works smoothly on Windows/Unix using 3.1.201 SDK. If you are having issues, I would suggest to try new SDK.