ILMerge 或 ResolveAssembly 用于嵌入程序集的缺点、优点等?

发布于 2024-09-08 05:28:51 字数 220 浏览 1 评论 0 原文

目前,我知道有两种将程序集嵌入到一个应用程序文件中的方法:ILMerge 和使用 ResolveAssembly 事件。

我想知道是否有人在其中一种方面取得了更大的成功。

使用其中任何一种(性能、安全性……)有什么缺点吗?

从我的角度来看,看起来我们应该始终将所有“私有”程序集合并到应用程序中,因为当将应用程序视为一个整体时,这种方式会更干净。

有什么想法吗?

Currently I know of two methods of embedding assemblies into one application file: ILMerge and using the ResolveAssembly event.

I would like to know if anyone have had more success with one over the other.

Is there any drawbacks from using either one of those (performance, security, ...)?

From my point of view, it looks like we should always merge all the "private" assemblies into an application as it is more clean this way when the application is considered as a whole.

Any thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等风也等你 2024-09-15 05:28:51

我已经找到了这个博客文章,我认为它充分回答了我的问题。

I've since found this blog post from Jeffrey Richter and I think it answers adequately my question.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文