如何将 ASP.NET 网站编译为单个 DLL 文件? [英] How do I compile an ASP.NET website into a single DLL file?

查看:27
本文介绍了如何将 ASP.NET 网站编译为单个 DLL 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于完成了我的网站.我发表了它,我对结果感到惊讶.虽然 App_Code 编译成一个单独的 DLL 文件,但每个页面背后的代码都编译成自己的 DLL 文件.如何使它成为一个 DLL 文件?

I have finally finished my web site. I published it, and I was surprised at the results. Although the App_Code compiled into a single DLL file, every page's code behind compiled into its own DLL file. How do I make it so that it is one DLL file?

此外,是否可以将所有内容(SubSonic、AJAX 等)编译到同一个 DLL 文件中?

Also, is it possible to compile everything (SubSonic, AJAX, etc.) into that same single DLL file?

推荐答案

为此,您可能更喜欢使用 Web 应用程序项目样式.

You might prefer to use the web application project style for that.

您可以使用 ILMerge 将程序集合并为一个.

You can use ILMerge to merge assemblies into one.

这篇关于如何将 ASP.NET 网站编译为单个 DLL 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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