Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.cmd on master fails with "Could not load file or assembly 'System.Data.SqlClient'" #380

Closed
cmeeren opened this issue May 24, 2020 · 3 comments

Comments

@cmeeren
Copy link
Contributor

cmeeren commented May 24, 2020

I'm working on #348, but it's a bit hard to contribute to the project, because running build.cmd (even on a clean checkout of master) fails on the BuildTestProjects target:

C:\Users\Christer\Source\Repos\SqlClient-Test\src\SqlClient.TestProjects\SqlClient.Tests.NET40\Program.fs(8,21): error FS3033: The type provider 'FSharp.Data.SqlCommandProvider' reported an error: Could not load file or assembly 'System.Data.SqlClient, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. [C:\Users\Christer\Source\Repos\SqlClient-Test\src\SqlClient.TestProjects\SqlClient.Tests.NET40\SqlClient.Tests.NET40.fsproj]

Am I doing anything wrong? Could there be something wrong with my environment?

@davidtme
Copy link

About 2-3 weeks I create a new test project that uses FSharp.Data.SqlClient in dotnet core 3 and everything work fine building using dotnet publish via fake. However, I came to build the same project this week and now I get the System.Data.SqlClient, Version=4.4.0.0 error message. I have not changed the code so I am guessing a windows update, dotnet update or VS update has happened which has thrown everything out (it happens so often I can’t remember).

@smoothdeveloper
Copy link
Collaborator

@cmeeren I think this is related to dotnet/fsharp#10323.

I'll see how to make it work out of the box as I'm also facing similar issues, the current work around is to clear:

DotNet.build
(fun args ->
{
args with
Configuration = DotNet.Release
//Common = { args.Common with Verbosity = Some DotNet.Verbosity.Detailed }
} |> dnDefault)
testProjectsSlnPath

Interestingly, the same task just works on our appveyor CI AFAIU.

@smoothdeveloper
Copy link
Collaborator

@cmeeren, this repository has been updated to dotnet sdk 7 / VS2022 and clears green on Travis.

I was also sketching to make what I can, work on non windows machine, at some point.

If you have some will to check it again, feel free to do so and report issues again, I'll close this now.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants