[Mono-list] SPAM-LOW: Re: how to get relative path
Charlie Poole
charlie at nunit.com
Mon Jan 12 14:07:30 EST 2009
Hi Chris,
I agree with your prefered alternatives. However...
> And if you really want to approach the problem the way you
> are, then you want to "using System.IO; using
> System.Reflection;" and use
> Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()
> .Location),
> "yourdatafilename").
This will break if the program is loaded from the shadow
copy cache.
Charlie
> --
> Chris Howie
> http://www.chrishowie.com
> http://en.wikipedia.org/wiki/User:Crazycomputers
> _______________________________________________
> 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