question

JulioEnriqueLopezBarajas-9229 avatar image
0 Votes"
JulioEnriqueLopezBarajas-9229 asked XingyuZhao-MSFT commented

How to add System.data.sqlclient to vb.net 2019

Hi everybody

I've just install Visual Studio 2019 Professional, i usually work with Visual Basic. I added one project to my solution in order to have a 3 layer solution and work with databases.

But the problem is that when i wrote the line imports system.data.sqlclient at the top of the code looks that its not included on visual studio.

I've read at many forums about it and i can't find the way to add the refrence; any clue or tip on how can i solve this issue?

Thanks in advance, have a nice day.

dotnet-visual-basic
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered XingyuZhao-MSFT commented

Are you sure that you have created a .Net Framework project (not .Net Core) ?

In a new .Net Framework project, it is added as Reference by default :

119931-systemdata-3.jpg




systemdata-3.jpg (127.1 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I've just check it out and i found that it's a .Net Core, you're right.

But i found that i can add the reference with NuGet Manager; I have not try to run my project to find out if it works or not, but anyway, i'm gonna change it.

Thank you so much for your help.

0 Votes 0 ·
XingyuZhao-MSFT avatar image XingyuZhao-MSFT JulioEnriqueLopezBarajas-9229 ·

Hi @JulioEnriqueLopezBarajas-9229 ,
How's the question going?
If your problem has been solved, then please accept the correct reply as answer.

0 Votes 0 ·