Probably the Class Library is based on .NET. Maybe you should create a new "Class Library (.NET Framework)" project.
Or right-click the project in Solution Explorer, go to "Manage NuGet Packages...", find and add the System.Data.SqlClient package.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Windows11
VS Community 2022
I am working on a solution which includes several projects, A vb winforms project, a vb class library, a couple of fortran dlls.
In the WinForms project I can import System.Data.SQLClient but in the class library project there is no System.Data.SQLClient namespace. In System.Data I see only two namespaces; common and SqlTypes.
Am I missing something, or is this "working as designed"?
Probably the Class Library is based on .NET. Maybe you should create a new "Class Library (.NET Framework)" project.
Or right-click the project in Solution Explorer, go to "Manage NuGet Packages...", find and add the System.Data.SqlClient package.