You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating fsproj files to the new format and targeting net461, dotnet build *.fsproj fails with the following error:
error FS3053 : The type provider 'FSharp.Data.SqlCommandProvider' reported an error : The type provider constructor has thrown an exception: Exception has been thrown by the target of an invocation. [*.fsproj]
FSC : warning FS3005: Referenced assembly 'C:\Users\ryan\.nuget\packages\fsharp.data.sqlclient\1.8.2\lib\net40\FSharp.Data.SqlClient.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found [*.fsproj]
Repro steps
Update fsproj from old format to new format, targeting net461.
Attempt to build the project with the dotnet build command.
Expected behavior
Successful build.
Actual behavior
error FS3053 : The type provider 'FSharp.Data.SqlCommandProvider' reported an error : The type provider constructor has thrown an exception: Exception has been thrown by the target of an invocation. [*.fsproj]
FSC : warning FS3005: Referenced assembly 'C:\Users\ryan\.nuget\packages\fsharp.data.sqlclient\1.8.2\lib\net40\FSharp.Data.SqlClient.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found [*.fsproj]
Known workarounds
Build with MSBuild.exe rather than the dotnet cli.
Description
After updating fsproj files to the new format and targeting
net461
,dotnet build *.fsproj
fails with the following error:Repro steps
Update fsproj from old format to new format, targeting
net461
.Attempt to build the project with the
dotnet build
command.Expected behavior
Successful build.
Actual behavior
Known workarounds
Build with
MSBuild.exe
rather than thedotnet
cli.Related information
The text was updated successfully, but these errors were encountered: