When adding DataSet in ASP.NET Framework 4.7.2 project in Visual Studio 2022 it automatically adds NuGet Package for Microsoft.Data.SQLClient after updating the version from 17.4.3

Kalsofte 5 Reputation points
2023-06-07T12:16:37.1+00:00

Whenever we add a new DataSet and Table Adapter in ASP.NET Web Site (Framework 4.7.2) in Visual Studio 2022, it automatically adds NuGet Package for Microsoft.Data.SQLClient. It was not happening in the version 17.4.3 and previous versions of VS2022. After updating to the latest version of VS 2022 probably from 17.5.x the issue started. We want to stick to System.Data.SQLClient and do not want this automatic addition of Microsoft.Data.SQLClient which results in inclusion of few hundreds of files under packages. We are forced to use VS2019 for just adding datasets to our ASP.NET Web Site.

Developer technologies | .NET | Other
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | ASP.NET | Other
{count} vote

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.