Installing NuGet Microsoft Data SqlClient to Visual Studio 2022 desktop project fails

Tom Spence 5 Reputation points
2025-10-23T11:08:12.8333333+00:00

Error reported in Package Manager console :

Adding package 'Microsoft.Extensions.DependencyInjection.Abstractions.8.0.2' to folder 'C:\Users.........\OneDrive\Documents\VISUAL STUDIO 2022\PROJECTS\WORKSHOP\WINFORMS..................\packages'

Install failed. Rolling back...

Package 'Microsoft.Extensions.DependencyInjection.Abstractions.8.0.2 : Microsoft.Bcl.AsyncInterfaces [8.0.0, ), System.Threading.Tasks.Extensions [4.5.4, )' does not exist in project '..............'

Developer technologies | .NET | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 81,191 Reputation points Volunteer Moderator
    2025-10-23T15:26:48.8066667+00:00

    You probably have one of or both dependencies already in your project but lower than required versions. Update the version of Microsoft.Bcl.AsyncInterfaces and System.Threading.Tasks.Extensions to at least minimum required.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.