TARGET_JVM: Environment.GetFolderPath is not supported.
authorKonstantin Triger <kostat@mono-cvs.ximian.com>
Tue, 14 Aug 2007 16:16:50 +0000 (16:16 -0000)
committerKonstantin Triger <kostat@mono-cvs.ximian.com>
Tue, 14 Aug 2007 16:16:50 +0000 (16:16 -0000)
svn path=/trunk/mcs/; revision=84093

mcs/class/System/System.Configuration/CustomizableFileSettingsProvider.cs

index f4e346eea07ca2d4d2fc7fcaf2f3f5e39f7adaff..f15fcc3aff842f56db128fb4e4f5f0f26ea76151 100644 (file)
@@ -301,15 +301,19 @@ namespace System.Configuration
                                ProductVersion = GetProductVersion ().Split('.');
 
                        // C:\Documents and Settings\(user)\Application Data
+#if !TARGET_JVM
                        if (userRoamingBasePath == "")
                                userRoamingPath = Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData);
                        else
+#endif
                                userRoamingPath = userRoamingBasePath;
 
                        // C:\Documents and Settings\(user)\Local Settings\Application Data (on Windows)
+#if !TARGET_JVM
                        if (userLocalBasePath == "")
                                userLocalPath = Environment.GetFolderPath (Environment.SpecialFolder.LocalApplicationData);
                        else
+#endif
                                userLocalPath = userLocalBasePath;
 
                        if (isCompany) {