-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Description
Describe the bug
SqlDataProvider gives compile error related to the use of Microsoft.Data.SqlClient in a fresh install of Console template in F# .Net 6.0.113 on Ubuntu 22.04.
Problem is reported as Microsoft.Data.SqlClient is not supported on this platform
in VS Code,
but when compiled using .Net CLI, the error is System.Data.SqlClient is not supported on this platform
.
To Reproduce
Steps to reproduce the behavior:
- Create fresh F# .Net 6.0 Console project
- Install
SqlProvider
andMicrosoft.Data.SqlClient
packages through Nuget - Use the following code in
Program.fs
:
open FSharp.Data.Sql
[<Literal>]
let connectionString = "Server=test;DATABASE=testdb;User=user1;Password=1234;"
type sql =
SqlDataProvider<UseOptionTypes=Common.NullableColumnType.OPTION, ConnectionString=connectionString, DatabaseVendor=Common.DatabaseProviderTypes.MSSQLSERVER>
- Observe error when running
dotnet run
and/or look at problems reported in highlights in IDE (VS Code)
Expected behavior
I expected the program to compile.
Screenshots
Not applicable.
Desktop (please complete the following information):
- OS: Ubuntu 22.04
- IDE: VS Code 1.74.2 with Ionide 7.4.0
- Browser (not applicable?): Firefox 109.0.1
Additional context
Might be related to this problem:
#771
altbodhi
Metadata
Metadata
Assignees
Labels
No labels