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

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

问题描述

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



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

解决方案

您可能更喜欢使用Web应用程序项目样式。



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


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?

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

解决方案

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

You can use ILMerge to merge assemblies into one.

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

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