* AppDomainSetup.cs: If relative paths are used they should be
[mono.git] / mcs / class / corlib / System / AppDomainSetup.cs
index 7a4a5508bf72760b8c839165b9888fdf1077d2c5..083c63d374da16b61b4878965653f7348ecef21e 100755 (executable)
@@ -52,7 +52,11 @@ namespace System {
                                        appBase = appBase.Replace ('/', Path.DirectorySeparatorChar);
 
                        } else if (appBase.IndexOf (':') == -1) {
-                               appBase = Path.GetFullPath (appBase);
+                               if (!Path.IsPathRooted (appBase))
+                                       appBase = Path.Combine (Path.GetTempPath (),
+                                                       appBase);
+                               else
+                                       appBase = Path.GetFullPath (appBase);
                        }
 
                        return appBase;