[Mono-dev] CurrentDomain.BaseDirectory when embedding

Steve Baer steve at mcneel.com
Thu Mar 17 13:11:12 EDT 2011


Thanks Jonathan, your suggestion appears to have fixed this. I wrote a console application that did absolutely nothing and called mono_jit_exec on it. Now I see that the default AppDomain has a BaseDirectory set.

-Steve


From: Jonathan Chambers 
Sent: Friday, March 11, 2011 4:27 PM
To: Steve Baer 
Cc: mono-devel-list at lists.ximian.com 
Subject: Re: [Mono-dev] CurrentDomain.BaseDirectory when embedding

Steve, 

I believe you need to call mono_jit_exec to properly initialize the runtime. If you don't have a Main method for you application since you are embedding, just create an empty one in your assembly that can be invoked. After the call to mono_jit_exec things should be setup properly.

http://www.mono-project.com/Embedding_Mono#Initializing_the_Mono_runtime

Thanks,
Jonathan


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110317/730f777e/attachment.html 


More information about the Mono-devel-list mailing list