Castle comes with a handy batch script called Release.bat. I guess in theory the idea is to simply run that and away you go. However running the script as it is produced the following error:
[csc] Compiling 173 files to 'C:\Development\Tools\OSS\Castle-Trunk\build\net-2.0\release\Castle.MicroKernel.dll'.
[csc] c:\Development\Tools\OSS\Castle-Trunk\InversionOfControl\Castle.MicroKernel\Context\CreationContext.cs(99,12): error CS0246: The type or namespace name 'var' could not be found (are you missing a using directive or an assembly reference?)
[csc] c:\Development\Tools\OSS\Castle-Trunk\InversionOfControl\Castle.MicroKernel\Context\CreationContext.cs(101,5): error CS1502: The best overloaded method match for 'System.Collections.Generic.Stack<Castle.MicroKernel.IHandler>.Push(Castle.MicroKernel.IHandler)' has some invalid arguments
[csc] c:\Development\Tools\OSS\Castle-Trunk\InversionOfControl\Castle.MicroKernel\Context\CreationContext.cs(101,28): error CS1503: Argument '1': cannot convert from 'var' to 'Castle.MicroKernel.IHandler'
[csc] c:\Development\Tools\OSS\Castle-Trunk\InversionOfControl\Castle.MicroKernel\Context\CreationContext.cs(221,4): error CS0246: The type or namespace name 'var' could not be...