Best way to get Mac ~ / Library / path when using C # with MonoMac

I have a common code base (dll) that I use for both a Windows project and a Mac. I'm looking for the best (supported) way to get the path to the Mac Library folder so that my project meets the requirements of the Mac App Store.

Right now I am using Environment.SpecialFolder.LocalApplicationData to get the path, but this does not give me the correct folder.

Does anyone know what I should use to get ~./Library/ ?

+4
source share
1 answer

I was unable to find anything that displayed directly, so I ended up coding the following:

 Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "Library") 
+3
source

All Articles