https://bugzilla.novell.com/show_bug.cgi?id=446353
Summary: The runtime should not change CodeBase of the entry
assembly in the shadowcopied appdomain.
Product: Mono: Runtime
Version: SVN
Platform: i686
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
The following two sample programs show the behavioral difference between .NET
and Mono. It probably blocks DBLinq NUnit tests due to the current directory
difference (probably it is set internally in nunit 2.4.8 or dblinq tests
themselves).
$ cat appdomain.cs
using System;
public class Test
{
public static void Main ()
{
AppDomain.CreateDomain ("mydomain", null,
new AppDomainSetup () {
ShadowCopyFiles = "true",
ApplicationBase = "c:\\",
})
.ExecuteAssembly ("test.exe");
}
}
$ cat test.cs
using System;
using System.Reflection;
public class Test
{
public static void Main ()
{
Console.WriteLine (Assembly.GetEntryAssembly ().CodeBase);
Console.WriteLine (System.IO.Path.GetFullPath ("."));
}
}
$ gmcs test.cs ; gmcs appdomain.cs
$ ./appdomain.exe # .NET result
file:///C:/cygwin/home/atsushi/tests/test.exe
C:\cygwin\home\atsushi\tests
$ mono ./appdomain.exe # Mono result
file:///test.exe
C:\cygwin\home\atsushi\tests
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs