[Mono-dev] Environment.GetFolderPath() behaviour inconsistent with .NET

sohummm me at sohummm.com
Thu Aug 18 15:54:50 EDT 2011

So is there a way to get a path to the Documents folder in OSX symbolically
without hard-coding it? 

Looking briefly at the bug reports, it appears that the original .NET
specification intended for that special folder enum to point to the
Documents directory, not the user's home folder. So, and correct me if I am
wrong, it does appear that the original implementation decision was not in
line with the .NET specification.

Nevertheless, I am not moving my application from Silverlight to Mono, I'm
trying to develop an application that supports both simultaneously
(something that it appears should be possible since one is supposed to be a
superset of the other other). 

If Mono has a way of getting the Documents folder without hardcoding it, I'd
be happy to use it in my specific application. I just don't want to end up
in a situation where Mono decides to fix this in a future version and I end
up getting a directory of the form //Users/Username/Documents/Documents/.


View this message in context: http://mono.1490590.n4.nabble.com/Environment-GetFolderPath-behaviour-inconsistent-with-NET-tp3341537p3753525.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list