Skip to content

Fixes error for netstandard where it tries to load SqlClient 4.6.1.0 #708

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

Closed

Conversation

JordanMarr
Copy link
Contributor

Proposed Changes

In reference to issue #645 where a .NET Core project fails with an error message about not being able to load System.Data.SqlClient Version=4.6.1.0 - and also my similar issue where the SSDT Provider gives the same error from VS Code (but not in VS 2019): this change to the build script fixes the issue for me in VS Code.

Types of changes

What types of changes does your code introduce to SQLProvider?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • Build and tests pass locally
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

Further comments

This just copies the netstandard2.0 version of System.Data.SqlClient instead of net461 to the bin/netstandard2.0 output folder.

@Thorium
Copy link
Member

Thorium commented Jan 12, 2021

A few questions, please:

  • Will this break Visual Studio 2017/2019 which are running fsx on .NET framework rather than dotnet?
  • Also there has been some issues with System.Data.SqlClient on .Net Core 3.1, that's why they started to do Microsoft.Data.SqlClient.dll, and I think the package versions SQLProvider refernces, System.Data.SqlClient works on .NET and Microsoft.Data.SqlClient works on .Net Core. I've not followed the recent changes on those projects. See TypeProvider not working with dotnet core 3.0 #645 (comment)

@JordanMarr
Copy link
Contributor Author

You're right, this just makes it break in different ways.

@JordanMarr JordanMarr closed this Jan 12, 2021
@Thorium
Copy link
Member

Thorium commented Feb 11, 2021 via email

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

Successfully merging this pull request may close these issues.

2 participants