[Mono-dev] Calling the mcs from an app.

Frank Fuchs fk.fuchs at googlemail.com
Sat Jul 24 16:53:58 EDT 2010


I want to test mono for embedding it into my C++ application. So far everything worked out rather well, but I'd like to have more of a script-like behavior. To be precise I'd like to provide the users of my application with the ability to write a rather complete .cs file (or even many of them) which interface with the methods of the host application. At the moment I need to invoke mcs manually in order to get this functionality (the assemblies are then executed with an embedded Jit ). However from browsing the web and the gmcs.exe assembly it seems possible to write a small c# program (which loads the gmcs.exe assembly) and invokes the compiler from source. Can the InvokeCompiler method in gmcs be called from outside? maybe even from c++? 

Thank you in advance!

More information about the Mono-devel-list mailing list