[Mono-bugs] [Bug 446353] New: The runtime should not change CodeBase of the entry assembly in the shadowcopied appdomain .
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 18 22:10:58 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: atsushi at ximian.com
QAContact: mono-bugs at lists.ximian.com
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.
More information about the mono-bugs
mailing list