如何prevent一个dll被加载到其他应用程序 [英] How to prevent a dll from being loaded in other apps

查看:111
本文介绍了如何prevent一个dll被加载到其他应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我开发中,我使用一个自定义的控制我公司开发前一段时间一个C#.net应用程序。我需要的DLL要在新的应用程序内发货 - 但可以理解的,我不希望被用于国外的应用程序的DLL文件。

currently I develop a C#.Net application in which I'm using a custom control I developed some time ago. I need the dll to be shipped within the new application - but understandably I do not want the dll file to be used for foreign apps.

这就是为什么我需要自定义的dll到新应用程序中以某种方式编译。目前,该dll被复制到应用程序目录。

That's why I need the custom dll to be somehow compiled within the new application. Currently the dll is copied into the application directory.

任何想法?应该是微不足道恕我直言。

Any ideas? Should be trivial imho.

感谢和放大器;问候, 丹尼尔·

Thanks & regards, Daniel

推荐答案

我认为你需要寻找到你的许可控制(S): <一href="http://msdn.microsoft.com/en-us/library/fe8b1eh9.aspx">http://msdn.microsoft.com/en-us/library/fe8b1eh9.aspx

I think you need to be looking into licensing your control(s): http://msdn.microsoft.com/en-us/library/fe8b1eh9.aspx

这篇关于如何prevent一个dll被加载到其他应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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