如何在vb.net中重定位运行时程序集(也称为DLL) [英] How do I relocate runtime assemblies (aka. DLLs) in vb.net

查看:134
本文介绍了如何在vb.net中重定位运行时程序集(也称为DLL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的vb.net项目中更改所有运行时程序集(dll)的位置?

How would I change the location of all the runtime assemblies (dlls) in my vb.net project?

推荐答案

你正在寻找线路上的东西这个 [< a href =http://stackoverflow.com/questions/1373100/how-to-add-folder-to-assembly-search-path-at-runtime-in-nettarget =_ blanktitle =新窗口> ^ ]。



您还可以在应用app.config文件中添加一个条目,以指定其他探测路径,这里 [ ^ ]。
You're looking for something along the lines of this[^].

You can also add an entry to your apps app.config file to specify additional probing paths, here[^].


打开应用程序MyProject选项卡。转到参考。删除您不想要的DLL的引用。单击第一个窗格右下角的添加按钮,添加对所需DLL的引用。将出现一个对话框,单击浏览按钮,导航到所需DLL所在的文件夹,选择DLL,最后选中刚刚在当前列表中指示的DLL旁边的复选框。点击确定。



regs。



ron O。
Open the application MyProject tab. Go to References. Remove the reference to the DLL you do not want. Add the reference to the DLL you do want by clicking the "Add" button lower right of first pane. A dialog box will appear, click the browse button, navigate to the folder where the desired DLL resides, select the DLL and finally check the check box next to the DLL you just indicated in the current list. Click OK.

regs.

ron O.


这篇关于如何在vb.net中重定位运行时程序集(也称为DLL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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