fsprojects / fsprojects/FSharp.Data.SqlClient
Build is broken without full VS installation
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 206
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure on a clean Windows 10 installation with only the .NET 4.8 developer pack, using a Rider project and SqlCommandProvider. Trace why System.Runtime.Caching is unavailable and verify that the project builds without a full Visual Studio installation, or that the required component is clearly identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fsharp, sql
- Domain
- build-system, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100