How to add reference to C#? [closed]

房东的猫 提交于 2019-12-08 13:57:45

问题


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. Create a new project.
  2. Select the .NET language of your choice (C#, VB .NET, etc.) and create a new “Windows Class Library” project. Ensure that the project targets .NET Framework 4.0.
  3. Add a reference to the library “MyPhoneCRMIntegration.dll” installed with 3CXPhone for Windows (usually C:\ProgramData\3CXPhone for Windows\PhoneApp).
  4. Rename the default class “Class1” to something valid for your plugin, for example “MyCrmPlugin”, and then add the attribute [MyPhonePlugins.CRMPluginLoader] to the class.

回答1:


See this:

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.

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.

NoteNote: If the component you are looking for is not in the list, you may locate it using the Browse button.

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



来源:https://stackoverflow.com/questions/20045230/how-to-add-reference-to-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!