[Mono-bugs] [Bug 46609][Nor] New - AppDomain.BaseDirectory misses trailing directoryseparator on linux
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Sat, 19 Jul 2003 05:58:04 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gert.driesen@pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=46609
--- shadow/46609 Sat Jul 19 05:58:04 2003
+++ shadow/46609.tmp.1029 Sat Jul 19 05:58:04 2003
@@ -0,0 +1,35 @@
+Bug#: 46609
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo 1.4 R5
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gert.driesen@pandora.be
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: AppDomain.BaseDirectory misses trailing directoryseparator on linux
+
+On Windows (with both .NET and Mono), AppDomain.BaseDirectory returns the
+application base directory with a trailing backslash.
+
+However, on Linux the AppDomain.BaseDirectory returns the application base
+directory without a trailing slash (Path.DirectorySeparator).
+
+using System;
+using System.Reflection;
+
+namespace BaseDirectory {
+ public class Test {
+ public static void Main() {
+ Console.WriteLine
+(AppDomain.CurrentDomain.BaseDirectory);
+ }
+ }
+}