FSharp.Data.SqlClient icon indicating copy to clipboard operation
FSharp.Data.SqlClient copied to clipboard

cannot build netstandard2.0 project with the dotnet SDK build

Open jackfoxy opened this issue 6 years ago • 2 comments

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

jackfoxy avatar Nov 06 '19 16:11 jackfoxy

Hi Jack!

Also related #373 .

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

MarneeDear avatar Mar 20 '20 13:03 MarneeDear

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.

melanore avatar Apr 03 '20 19:04 melanore