如何在c#中添加dll引用 [英] How to add dll reference in c#

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

问题描述

如何在bin文件夹中添加特定dll的引用。我右键单击bin文件夹 - >然后添加reference->现在如何找到一个特定的dll ...



我想添加Telerik dll参考..

解决方案

< blockquote>在Visual Studio 2012中(可能对其他人来说相同)



点击参考菜单项



添加参考 - >点击浏览 - >并从Bin文件夹中选择你的dll





现在有了NuGet的便利性


Visual Studio:



将DLL复制到您可能想要使用的项目的文件夹中,例如如果您的项目位于C:\ Temp \ MyProject下并且您的DLL位于C:\ DLLS \ ModelD.dll,则需要将Mydll.dll复制到C:\ Temp\MyProject。

然后,启动Visual Studio并转到项目,右键单击项目名称 - >添加参考 - >浏览 - >浏览... [右下角的按钮] - >在C:\Temp \ MyProject \ ModelD.dll中选择Dll文件。完成。

How to add reference of a particular dll in bin folder.I right click the bin folder->then add reference-> now how to find a particular dll...

I want to add Telerik dll reference..

解决方案

In Visual Studio 2012 (may be the same for others)

Click On your References Menu item and

Add reference --> Click Browse --> And select your dll from the Bin Folder


Now with the Convenience of NuGet


Visual Studio:

Copy the DLL into the folder of the project you may want to use, e.g. if your project is located under "C:\Temp\MyProject" and your DLL is located at "C:\DLLS\Mydll.dll", you need to copy "Mydll.dll" to "C:\Temp\MyProject".
Then, Start Visual Studio and go to the Project, Right Click the project name -> Add Reference -> Browse -> Browse... [Button in the bottom right corner] -> Select the Dll file at "C:\Temp\MyProject\Mydll.dll". Done.


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

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