Runtime: Windows Compat Pack - unable to find a stable System.Data.SqlClient >= 4.6.1

Created on 16 Apr 2019  Â·  12Comments  Â·  Source: dotnet/runtime

Creating issue for multiple customer reported issues:

_User grant grantwinney@protonmail.com sends the following message to the owners of Package 'Microsoft.Windows.Compatibility 2.1.0'._

Every time I try to upgrade my .NET Standard library from v2.0.1 to v.2.1.0 I get the following error and it rolls back to 2.0.1:
NU1103: Unable to find a stable package System.Data.SqlClient with version (>= 4.6.1)
• Found 32 version(s) in nuget.org [ Nearest version: 4.7.0-preview.18571.3 ]
• Found 2 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.1.0 ] Package restore failed. Rolling back package changes for 'Logger'.
Is this new version dependent on System.Data.SqlClient for some reason? I don't use it in my application, and don't have a dependency on it.

_User arbor info@nlundberg.se sends the following message to the owners of Package 'Microsoft.Windows.Compatibility 2.1.0'._

NuGet package Microsoft.Windows.Compatibility version 2.1.0 released to NuGet has a dependency to System.Data.SqlClient >= 4.6.1 that is not on NuGet.

_User dwn diwendt@microsoft.com sends the following message to the owners of Package 'Microsoft.Windows.Compatibility 2.1.0'._

2.1.0 breaks installation of this package:
Severity Code Description Project File Line Suppression State Error NU1103 Unable to find a stable package System.Data.SqlClient with version (>= 4.6.1)
• Found 1272 version(s) in https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json [ Nearest version: 4.7.0-alphautf8string.18530.6 ]
• Found 32 version(s) in nuget.org [ Nearest version: 4.7.0-preview.18571.3 ]
• Found 0 version(s) in Microsoft Visual Studio Offline Packages
• Found 0 version(s) in https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore-tooling/index.json
• Found 0 version(s) in https://dotnetfeed.blob.core.windows.net/aspnet-aspnetcore/index.json
• Found 0 version(s) in https://dotnetfeed.blob.core.windows.net/aspnet-entityframeworkcore/index.json
• Found 0 version(s) in https://dotnetfeed.blob.core.windows.net/aspnet-extensions/index.json
• Found 0 version(s) in https://dotnetfeed.blob.core.windows.net/dotnet-windowsdesktop/index.json
• Found 0 version(s) in secassure dotnetcoretest E:codedotnetcoretestdotnetcoretest.csproj 1

area-System.Data.SqlClient blocking-release bug

Most helpful comment

In the meantime you should unlist the one with the dangling dependency.

All 12 comments

@ericstj

Yes, unfortunately we did :( We discovered this in https://github.com/dotnet/corefx/pull/36060, and will ship that package with 2.2.5. That was the motivation for https://github.com/dotnet/arcade/issues/2419. I mis-timed when the appropriate change was merged into packages.builds, in relation to when the builds were ran.

CC @mmitche

Will Microsoft.Windows.Compatibility be updated to fix this or just publish SqlClient? If it is the second, what is the ETA? I want to make sure we don't miss this change.

We'll be shipping an updated Microsoft.Windows.Compatibility concurrently to the new System.Data.SqlClient with our May servicing release, which should go public early in May.

In the meantime you should unlist the one with the dangling dependency.

Sounds good, I'll follow up offline with the nuget folks.

I just unlisted the 2.1.0 version of the package from nuget.org.

As recently announced in the .NET Blog, focus on new SqlClient features an improvements is moving to the new Microsoft.Data.SqlClient package.

I assume however that this specific issue is really about what is included in Windows Compatibility Pack and not really about System.Data.SqlClient, so I am not going to move it to the new repo.

@danmosemsft any thoughts?

@wtgodbe is this now resolved (since May release)?

Yes, this should be resolved now. Here's the 4.6.1 version of SqlClient, and the 2.1.1 version of the Compatibility package.

thanks @wtgodbe

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jchannon picture jchannon  Â·  3Comments

v0l picture v0l  Â·  3Comments

chunseoklee picture chunseoklee  Â·  3Comments

omariom picture omariom  Â·  3Comments

GitAntoinee picture GitAntoinee  Â·  3Comments