[Mono-list] Using mcs in a C# program
07 Dec 2002 20:30:41 +0100
"Daniel Morgan" <firstname.lastname@example.org> 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.