[Mono-list] Re: mono-service

Elliott Draper el at eldiablo.co.uk
Tue Nov 1 11:39:44 EST 2005


Bradley, Peter wrote:

>Robert,
>
>*snip*
>
>OK.  I'll play with that.  The property has to be set, of course, which
>means hard coding a path into code, which is something I like to avoid
>where I can, but it doesn't seem too much of a risk in this situation.
>Thank you.
>  
>
That property doesn't have to be set, it's something you get for free. 
The AppDomain is created and setup presumably by the runtime when your 
program launches, and it will automatically pick up the path to your 
configuration file, providing it is named the same as your executable, 
with ".config" on the end, e.g. "myapplication.exe.config". In this way, 
you don't have to hard code any path into the code, that's what makes it 
so portable :-)

>Cheers
>
>
>Peter
>  
>
-= El =-

>_______________________________________________
>Mono-list maillist  -  Mono-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list
>  
>



More information about the Mono-list mailing list