[Mono-list] CSharpCodeProvider

Aaron Oxford aaron at hardwarehookups.com.au
Mon Mar 13 05:25:49 EST 2006

Perhaps the title of my post was misleading. I am not sure of the details 
myself. Using Microsoft's gear under Windows, I can take a string that 
contains a C# class and produce a class at runtime. I can go straight from 
a string of code to an object that extends a base class in my main project 
and then use it as if it were compiled with the main code.

Are you saying that I could perhaps compile a .SO file and read it back in 
as an assembly as a work-around for Mono/Linux? I'm going to modularise the 
project to allow rewriting of platform/devenv dependent parts such as sound 
and GUI so if there is a simple workaround that will be more than sufficient.


At 06:18 PM 13/03/2006, Atsushi Eno wrote:
>>I'm presently working on my port to Linux thanks to a friend who is good 
>>with Linux and Mono. He tells me however that at present compiling code 
>>on the fly is not possible.
>>I was just wondering if this is any sort of priority to the Mono team and 
>>when we might expect this capability to be ready for use.
>Maybe you mix different things. We already have CSharpCodeProvider.
>Its CodeCompiler (as well as MS.NET) just invokes C# compiler (mcs
>in mono, csc in MS.NET) which some people might not call "on the fly".
>Atsushi Eno
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 10/03/2006

More information about the Mono-list mailing list