"Daniel Morgan" <[EMAIL PROTECTED]> writes:

> How do you use mcs (the Mono C# compiler) from a C# program?  I'm looking
> for something that will work on Linux and Windows.
> 
> Let's say, in my C# program, I want to compile another C# program using mcs?

Well, we may want to split mcs into mcs.exe and mcs-compiler.dll and then integrate it 
in
some way with System.CodeDom.Compiler.  Once we can execute dynamic assemblies, this 
could
also return an Assembly on which you could just call Run().

However, this may involve some larger modifications in mcs since we're using global
variables in some places for performance reasons.

-- 
Martin Baulig
[EMAIL PROTECTED]

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to