fsprojects / fsprojects/FSharp.Data.SqlClient

Build is broken without full VS installation

Open
#412 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.