[Mono-bugs] [Bug 32417][Nor] New - AppDomain.BaseDirectory returns an empty string

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
17 Oct 2002 00:45:50 -0000


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 ianm@activestate.com.

http://bugzilla.ximian.com/show_bug.cgi?id=32417

--- shadow/32417	Wed Oct 16 20:45:49 2002
+++ shadow/32417.tmp.28762	Wed Oct 16 20:45:49 2002
@@ -0,0 +1,41 @@
+Bug#: 32417
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ianm@activestate.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: AppDomain.BaseDirectory returns an empty string
+
+Description of Problem:
+referencing AppDomain.BaseDirectory returns an empty string instead of the
+actual basedir of the current domain
+
+Steps to reproduce the problem:
+1. Create a console app with the folowing code
+public static void Main(string[] args ){
+		    string basedir = System.AppDomain.CurrentDomain.BaseDirectory;
+		    Console.WriteLine( "basedir = " + basedir );
+		 
+		 }
+2. build and run it
+
+
+Actual Results:
+somthing like: basedir = D:\Dev\test\csharp\mono tests\ 
+
+Expected Results:
+basedir =
+
+Extra comments.
+based on a brief scan of the sources it looks like the basedir is probably
+set via the AppDomain CreateDomain.