[Mono-bugs] [Bug 76636][Nor] New - Runtem and assembly version selection is non MS.NET compatible

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Nov 5 09:11:48 EST 2005


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 kornelpal at hotmail.com.

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

--- shadow/76636	2005-11-05 09:11:48.000000000 -0500
+++ shadow/76636.tmp.15256	2005-11-05 09:11:48.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 76636
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: kornelpal at hotmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Runtem  and assembly version selection is non MS.NET compatible
+
+MS.NET uses the available runtime with the lowest version number that is 
+greather than or equal to the runtime version of the executed image. This 
+behavior can be overriden using app.config. mscorlib.dll that belongs to 
+the selected runtime is loaded regardless of app.config. All other 
+assemblies are loaded using standard version matching even from the GAC. 
+That means that if the referenced version is available it is used unless 
+configuration files force to use a different version.
+
+Mono runtime only tries exact runtime version match otherwise 
+DEFAULT_RUNTIME_VERSION is used. This results in a nonsense situation 
+that we have to list all existing 2.0 Beta and RC versions in 
+supported_runtimes if we want to use version 2.0 runtime for them instead 
+of 1.1. By using the MS.NET runtime version selection method 2.0 Beta and 
+RC assemblies were executed against 2.0 runtime without need to list Beta 
+and RC versions in supported_runtimes even with 1.1 
+DEFAULT_RUNTIME_VERSION. I think DEFAULT_RUNTIME_VERSION should not be 
+changed untile Mono 1.2 is released but v2.0.50215 (Beta 2) should be 
+removed from supported_runtimes.
+
+In addition Mono runtime seems to select assemblies based 
+supported_runtimes and/or image runtime version of GAC assemblies. 
+Assemblies other than mscorlib.dll should be selected based on referenced 
+versions in the referencing assembly and based on configuration files. 
+Only mscorlib.dll has to be selected based on runtime version. mscorlib 
+is a special case as it isn't installed to GAC (neither on Mono nor on 
+MS.NET) but is loaded by the runtime.
+
+I think this bug should be fixed at a high priority as MS.NET 2.0 RTM was 
+released so there will be more and more people using 2.0 RTM, Beta, RC 
+assemblies and they expect MS.NET behavior on runtime and assembly 
+version selection.


More information about the mono-bugs mailing list