如何添加对 C# 的引用? [英] How to add reference to C#?

查看:33
本文介绍了如何添加对 C# 的引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的 C# 项目中添加以下引用,MyPhoneCRMIntegration.dll 这个文件的目录是 C:\ProgramData\3CXPhone for Windows\PhoneApp,如何我可以设法将它添加到我的 C# 项目中吗?我从该网站上获得的说明是:

I need to add the following reference to my C# project, MyPhoneCRMIntegration.dll the directory of this file is C:\ProgramData\3CXPhone for Windows\PhoneApp, how can I manage to get this in to my C# project? The instructions on the site I've got from are:

  1. 创建一个新项目.
  2. 选择您选择的 .NET 语言(C#、VB .NET 等)并创建一个新的Windows 类库"项目.确保项目面向 .NET Framework 4.0.
  3. 添加一个参考安装的库MyPhoneCRMIntegration.dll"3CXPhone for Windows(通常为 C:\ProgramData\3CXPhone forWindows\PhoneApp).
  4. 将默认类Class1"重命名为某个东西对您的插件有效,例如MyCrmPlugin",然后添加将 [MyPhonePlugins.CRMPluginLoader] 属性分配给该类.

推荐答案

参见 这个:

在解决方案资源管理器中,选择项目.

In Solution Explorer, select the project.

在项目"菜单上,单击添加引用".

On the Project menu, click Add Reference.

添加引用"对话框打开.

The Add Reference dialog box opens.

选择指示要引用的组件类型的选项卡.

Select the tab indicating the type of component you want to reference.

在顶部窗格中,选择要引用的组件,然后单击选择"按钮.单击以选择多个组件的同时按住 CTRL.

In the top pane, select the component you want to reference, and then click the Select button. Press CTRL while clicking to select multiple components.

注意注意:如果您要查找的组件不在列表中,您可以使用浏览"按钮找到它.

选择所需的所有组件后,单击确定".选定的引用将出现在项目的引用节点下.

Click OK when you have selected all the components you need. Selected references will appear under the References node of the project.

这篇关于如何添加对 C# 的引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆