Precompiled ASP.NET web sites in Mono
I just added support for running precompiled non-updatable ASP.NET web sites in mono. The benefit from this, apart from the well-known faster initial request and not shipping source code, is that now you will be able to run you ASP.NET applications written in VB.NET in mono without crossing your fingers and expecting our VB.NET compiler to not give you any problem.
The support for precompiled web sites will be in the upcoming Mono 2.4 release and is already in SVN HEAD for those of you not afraid to compile Mono from sources.
Given a web project, you can generate the precompiled version either form Visual Studio or from the command line, like:
This command will precompile BlogEngine.net and leave all the generated files in c:\test\output. With the above commands, there are no source files in the output folder at all. Now, to run this on Mono, all you need to do is copy the output folder to your linux machine and configure Apache/mod_mono to serve that folder at /blog/. If you just want to do a quick test, assuming you copied c:\test\output to /tmp/output:
$ xsp2 --applications /blog:.
...and then go to http://localhost:8080/blog/ with your browser.
For this application in particular, the time taken to display the first page is about 2s on my laptop, while the non-precompiled site takes about 18s.
blog comments powered by Disqus