如何在c#中停止引用隐藏的dll [英] how to stop referencing to hidden dll in c#

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

问题描述




我有一个dll(例如A.dll)引用其他dll(比如B.dll),现在当我在我的应用中使用A.dll时,我的应用程序也可以看到B.dll,我希望B.dll不能到达我的应用程序。

可以任何人说如何制作B.dll仅由A.dll使用应该是我的应用程序无法接触。



谢谢

Santhosh

解决方案

您可以将B.DLL作为私有程序集到A.DLL。请参阅: http://msdn.microsoft.com/ en-us / library / windows / desktop / ff951638(v = vs.85).aspx [ ^ ]。



在走这条路之前,彻底考虑所有影响,赞成和反对。它将更难以支持,特别是如果最终您决定在其他地方使用B.DLL资源。另一种方法是将A.DLL和B.DLL加入一个程序集中,另一个只是将事情保留原样并忽略问题。



-SA

Hi
I have a dll (for example A.dll) which references to an other dll( say B.dll), now when i use A.dll in my app, my application can also see B.dll,i want B.dll to be not reached to my app.
can any one say that how to make B.dll is only used by A.dll and should be out of reach to my app.

Thank you
Santhosh

解决方案

You can make B.DLL a private assembly to A.DLL. Please see: http://msdn.microsoft.com/en-us/library/windows/desktop/ff951638(v=vs.85).aspx[^].

Before going this way, thoroughly consider all implications, pro and contra. It will be harder to support, especially if eventually you decide to use B.DLL resources elsewhere. One alternative would be joining A.DLL and B.DLL in one assembly, another one just leaving things as is and ignoring the problem.

—SA


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

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