I have an ASP.NET 4.0 web application that needs to be precompiled into a single assembly . I played with the available options and I get the following:
1. When I compile, I get a separate assembly for each page as follows:
- ( ) () - Asp.Net, "- Asp.Net".
, dll, "dll per page" "dll per directory", -. (IE: 6 Default), , , .
Default
(build script) dll /bin .
- ILMerge, /bin dll, , . , , - .NET libs, , .
aspnet . , , . http://msdn.microsoft.com/en-us/library/ms227972.aspx
:
AFAIK you cannot update UI / html without recompiling the server using temporary files
All .aspx, .ascx, etc. files converted to source code and then compiled. The only method that ASP.NET provides is to eliminate the possibility of compiling pages and controls, but then your site is no longer being updated. In this case, you always need to redistribute the binaries for each update.
Any specific reason you don't want ASP.NET to create temporary files? This is a perfectly acceptable practice, I think.