CBusBus
CBusBus

Reputation: 2359

How to reference System.Data in c#

I'm looking to reference the System.Data namespace for interacting with MS Access however, whenever I attempt to use using System.Data The namespace is not found.

Is there some other reference that I need to add to my project.

Working with .net 4.6.2. Due to the nature of my project (acad objectARX 2018 based) I need to use this version of .net (or at least I think I do, can you use different framework versions for different class libraries?)

Thanks, SOliver.

Edit: Turns out I was creating a class library(.net standard) where I was looking for class library (.net framework)

Cheers for the help.

Upvotes: 1

Views: 10008

Answers (1)

Jack Marchetti
Jack Marchetti

Reputation: 15754

  1. Right click on your project
  2. In the Add Reference dialog box, click the Assemblies, make sure System.Data is checked.

Upvotes: 4

Related Questions