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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,356 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,248 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,595 questions
{count} vote