[Mono-list] Cross-platform user settings files

edward.harvey.mono edward.harvey.mono at clevertrove.com
Fri Dec 28 16:19:34 UTC 2012


> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Hristo Pavlov
>
> What is the recommended way to save user settings files from Mono across
> different platforms?
>
> For example I have an XML file with settings that I want to store somewhere.
> I thought the IsolatedFileStorage would be a good place but I have
> permission problems (read and write) on both Mac OSX and Linux.

I think you'll find your best answer here:
http://clevertrove.com/SpecialFolderEnumeration/specialFolder_by_os.html

Looks like either ApplicationData or CommonApplicationData or LocalApplicationData or Personal

BTW, I noticed, IsolatedFileStorage isn't on the list.  I'm guessing you meant IsolatedStorageFile.  It looks like IsolatedStorageFile does something similar, including a level of security, but I don't know how much security it provides.  I am guessing, if you actually want security, there's probably something better under System.Security.  But I really am just guessing.

I personally have a preference for JSON (javascriptserializer) over XML, but they both accomplish the same task of serialization.



More information about the Mono-list mailing list