[Mono-list] Mono on Win32 actually requiring MS.NET 1.1 to run ASPX ?

Gonzalo Paniagua Javier gonzalo@ximian.com
Wed, 12 Nov 2003 19:09:40 +0100


El mié, 12-11-2003 a las 10:03, George Kodinov escribió:
> Hi,
> 
> I've noticed that mono on Win32 actually requires MS.NET 1.1 to be 
> installed in order to be able to compile ASPX pages. This is because it 
> actually spawns the mcs.exe (using command line 'mcs ..... <temp_file.cs>').
> While this is OK on linux (there's a 'mcs' shell script there to run 
> 'mono mcs.exe ...') on Win32 this causes the MS.NET runtime to be used 
> to run mcs.exe. And since there're some 1.1 methods in Mono it won't run 
> if only 1.0 is installed.
> 
> My questions are :
> - why is it nesesary to spawn a process to compile something ? Can't 
> most of the mcs be stuffed somewhere inside the runtime libraries and 
> only the command line parser etc. to actually reside in mcs.exe ?

Because by the time that CSharpCodeCompiler was done, mcs didn't support
any other means of being invoked.

> - If the process will be spawn in the future as well, can a mcs.bat 
> (invoking the Mono runtime to run the mcs.exe) be called (or that be 
> parameterizable somehow - environment variables or something) ?

Mmm. Mcs has now an entry point that we could use when compiling (a new
class called CompilerCallableEntryPoint). Can you please add a bug
report about this? We'll look into that after the release.

-Gonzalo