简体   繁体   English

如何在C#中引用System.Data

[英]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. 但是,每当我尝试using System.Data进行使用时,我都希望引用System.Data命名空间与MS Access进行交互。

Is there some other reference that I need to add to my project. 我还需要添加其他一些参考给我的项目。

Working with .net 4.6.2. 使用.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?) 由于我的项目的性质(基于acad objectARX 2018),我需要使用此版本的.net(或者至少我认为我可以这样做,可以为不同的类库使用不同的框架版本吗?)

Thanks, SOliver. 谢谢,SOliver。

Edit: Turns out I was creating a class library(.net standard) where I was looking for class library (.net framework) 编辑:原来我正在创建一个我正在寻找类库(.net框架)的类库(.net标准)

Cheers for the help. 为帮助加油。

  1. Right click on your project 右键点击您的项目
  2. In the Add Reference dialog box, click the Assemblies, make sure System.Data is checked. 在“添加引用”对话框中,单击“程序集”,确保已选中“ System.Data”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM