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

Build is broken without full VS installation

Open omcnoe opened this issue 4 years ago • 0 comments

Issue Summary

.NET developer pack from https://dotnet.microsoft.com/download/visual-studio-sdks alone is not enough to successfully build a project using this library. There is some dependency that is only pulled in with a full VS installation.

To Reproduce

On clean Windows 10 install, install .NET 4.8 developer pack but not full VS. Create new project in Rider using SqlCommandProvider.

Error

At build time you will receive this error: error FS3053: Error : The type provider constructor has thrown an exception: Could not load file or assembly 'System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. 4>FSC: Error FS3005 : Referenced assembly 'C:\Users\omcnoe\.nuget\packages\fsharp.data.sqlclient\2.0.7\lib\net40\FSharp.Data.SqlClient.dll' has assembly level attribute 'Microsoft.FSharp.Core.CompilerServices.TypeProviderAssemblyAttribute' but no public type provider classes were found

Expected behavior

Build should work without error, or at least indicate which missing component needs installed. Currently build fails with this obtuse error message. Solution is to install full Visual Studio with desktop .Net development components.

omcnoe avatar Oct 05 '21 21:10 omcnoe