Core: Unable to find a stable package System.Data.SqlClient with version (>= 4.6.1)

Created on 11 Apr 2019  路  11Comments  路  Source: dotnet/core

Unable to find a stable package System.Data.SqlClient with version (>= 4.6.1)

When i tried to pull the package i get the error
Unable to find a stable package System.Data.SqlClient with version (>= 4.6.1)

Most helpful comment

I am seeing the same error message when trying to install v2.1.0 of the Microsoft.Windows.Compatibility NuGet into a .NET Standard 2.0 project.

All 11 comments

I am seeing the same error message when trying to install v2.1.0 of the Microsoft.Windows.Compatibility NuGet into a .NET Standard 2.0 project.

Same problem here on .NET Core 2.1

Same problem here using .NET Core 2.2
Install of version 2.0.1 succeeds without error

What are the minimal steps to reproduce? (some HelloWorld-style repro)

Create .NET Core console app for .NET Core 2.2 using VS 2017 15.9.9
Use Package Manager console:
Install-Package Microsoft.Windows.Compatibility -Version 2.1.0
Get error:
Install-Package : 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 3 version(s) in Microsoft Visual Studio Offline Packages [ Nearest version: 4.3.1 ]
    At line:1 char:1

    • Install-Package Microsoft.Windows.Compatibility -Version 2.1.0

    • ~~~~~~~~~~~~~~

    • CategoryInfo : NotSpecified: (:) [Install-Package], Exception

    • FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

Install-Package : Package restore failed. Rolling back package changes for 'ConsoleApp1'.
At line:1 char:1

  • Install-Package Microsoft.Windows.Compatibility -Version 2.1.0
  • ~~~~~~~~~~~~~~

    • CategoryInfo : NotSpecified: (:) [Install-Package], Exception

    • FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand

      image

Plus this, if it is of any help at all:
image

Same issue exists in Visual Studio 2019 16.0.1, .Net Core SDK 2.2.203 (x64)

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 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 ]

@joperezr @ericstj is it a known problem?
cc @divega

System.Data.SqlClient version 4.6.1 was shipped to NuGet 3 days ago. This probably means that somebody that depended on this package internally shipped to NuGet before it was supposed to, but I believe that this problem shouldn't be happening now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rykr picture rykr  路  3Comments

sravan1022 picture sravan1022  路  4Comments

AxxlForce picture AxxlForce  路  3Comments

lesomnus picture lesomnus  路  3Comments

swapnild2111 picture swapnild2111  路  3Comments