Closed
Description
Description
I'm trying to use the typeprovider with netcoreapp3.0 (3.0.100). But it is not working for me.
I alread tried to reference System.Data.SqlClient.
Ionide is failing as well.
Repro steps
-
Set up Dotnet core app 3.0
-
Add SqlProvider
-
Try to get datacontext
open FSharp.Data.Sql
open System
open Config
/// Query DME
let [<Literal>] CompileTimeConnectionString = "myconnectionString"
type SqlDme = SqlDataProvider<Common.DatabaseProviderTypes.MSSQLSERVER, ConnectionString=CompileTimeConnectionString, UseOptionTypes=true> //, ContextSchemaPath = ContextSchemaPath>
Expected behavior
TypeProvider should just work
Actual behavior
I get following error message when building the project:
Could not load file or assembly 'System.Data.SqlClient, Version=4.6.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Das System kann die angegebene Datei nicht finden. [C:\Users\tforkmann\Documents\1_Tests\PreveroFeed\src\Server\Server.fsproj]
Known workarounds
- Add FSharp.Compiler.Tools
- Add to fsproj file
<DotnetFscCompilerPath></DotnetFscCompilerPath>
Related information
- MS Sql
- Windows 10
- netcoreapp3.0