RunUO 2.0 RC1: Enable the use of virtually any .Net 2 compiler
I used the original ScriptCompiler.cs which I have heavily refactored and modified. I merged much of the duplicated code of this class (example of this in CompileCSScripts and CompileVBScripts in original file).
To sum everything up, a list of compiler is loaded at startup and then used to compile specified files.
As an example file, I have included the two compilers that were already there, C# et VB.Net, but it would be easy to add another like Boo or any other that provides 2.0 compatible CodeDomProvider.
Not much more added value to this, but since I had nothing much to do tonight. Got me back in the game (at least a little).
Update 20-06-2006 18h16:
! Fixed dll extensions (hashing should now work properly)
* Moved most of the literals to constant.
ZixThree
I used the original ScriptCompiler.cs which I have heavily refactored and modified. I merged much of the duplicated code of this class (example of this in CompileCSScripts and CompileVBScripts in original file).
To sum everything up, a list of compiler is loaded at startup and then used to compile specified files.
As an example file, I have included the two compilers that were already there, C# et VB.Net, but it would be easy to add another like Boo or any other that provides 2.0 compatible CodeDomProvider.
Not much more added value to this, but since I had nothing much to do tonight. Got me back in the game (at least a little).
Update 20-06-2006 18h16:
! Fixed dll extensions (hashing should now work properly)
* Moved most of the literals to constant.
ZixThree