Search code examples
asp.netvisual-studiodllcompilationweb-deployment-project

How do I compile an ASP.NET website into a single DLL file?


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?


Solution

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

    You can use ILMerge to merge assemblies into one.