[Mono-list] ASP.NET precompilation

Chris Aitken chris at ion-dreams.com
Thu Jul 28 07:56:44 EDT 2005


> > Miguel - I've just read your blog entry [1]. Very interesting.
> > Quote: "This patch is not very interesting anymore as ASP.NET 2.x 
> > allows for websites to be deployed by precompiling the 
> whole site and 
> > copying the resulting DLL."
> 
> Of course all the old 1.x deploying techniques can be used in 
> 2.z. using inline code or using Visual Studio to create a 
> DLL, but the new ones may be better for developers because no 
> server side compilation needed and protects your source code as well.
> 
> > I thought you could do this under ASP.NET 1.x?
> 
> Of course 1.x can use DLLs but it creates classes in a DLL 
> that inherit from System.Web.UI.Page and that classes are 
> used as the base classes of the class created from the .aspx 
> file on the server. This means that you have to include your 
> .aspx file and it can be modified. You can modify HTML code, 
> server side controls and you can add inline code.
> 
> In 2.x the new thing is that you can compile your .aspx files 
> into a DLL and the content of .aspx files cannot be seen on 
> the production server nor can it be extended.

Ah. I did wonder if that is what was meant.
That sounds very powerful.

> 
> There is a new tool called aspnet_compiler.exe:
> http://msdn2.microsoft.com/library/ms178614(en-us,vs.80).aspx
> 
> (I don't wanted to be technically correct and talk about all 
> features of ASP.NET I just tried to show the difference 
> regarding aspnet_compiler.exe)


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the Mono-list mailing list