Welcome to Rainbow Portal Community Sign in | Join | Help

Rahul's Notes

Using Precompilation as part of our build process.
This is an extention to my automated builds blog post earlier. I think it's a good idea to precompile the "product" releases since not every end user actually cares to mess with the rainbow code. Most people that want to put up a website don't care how it works, just that it works.

A precompile task in our release process would streamline our process.

There is a command line tool in addition to the URL based precompile in asp.net 2.0 ( http://localhost/appname/precompile.axd).

aspnet_compiler.exe
    [-m metabasePath | -v virtualPath | [-p physicalDir]]
    [targetDir]

If the target directory isn't given, the application is pre-compiled in place and the source is left
in the same area. If the target directory is given, all source files are compiled into assemblies after having content stripped from them. Empty source files remain for the webserver to know that they exist on the filesystem.

I think this is a good process for a nightly or weekly build process on DEVINT ( to start )

1. Download latest code from DEVINT via SVN to a "targetCompileDirectory"
2. Execute aspnet_compiler with the [physicalDir] = "targetCompileDirectory" and [targetDir] = "targetPackageDirectory"
3. Zip/Rar "targetPackageDirectory" with a datestamp Ready for testing.

The Precompilation API also can be called from .NET programmatically. This I'll write about another time, when our framework is a little cooler.

Published martedì 28 febbraio 2006 8.44 by anantatman

Comments

# re: Using Precompilation as part of our build process. @ martedì 28 febbraio 2006 9.31

I personally like VS 2005 two click publish. You can say publish my precompiled site to any directory in 2 clicks. I didnt know however there is a url way.

ramseur

# re: Using Precompilation as part of our build process. @ mercoledì 1 marzo 2006 22.38

Quote "since not every end user actually cares to mess with the rainbow code"
I could not agree with you more Rahul. If you can cater for the non-techo audience a bit better I think Rainbow has a much better chance of adoption over a wider market.

primaveranz

# re: Using Precompilation as part of our build process. @ giovedì 2 marzo 2006 10.37

ramseur,

the precompile.axd is useful when you are developing the site and want to recompile.

the command line is useful when you want to make the precompile part of the automated build process when multiple people are committing to the same codebase.

anantatman

# re: Using Precompilation as part of our build process. @ giovedì 2 marzo 2006 10.38

primaveranz,

yes. exactly. that is why I proposed Rainbow Lite. I want it to be an alternative to things liek wordpress and movabletype but offer more than just a blogging engine. it should be a tool that people can make their personal/small biz sites and do more with it than just blog everyday.

anantatman

Anonymous comments are disabled
 
Powered by Community Server (Personal Edition), by Telligent Systems