[Mono-bugs] [Bug 69292][Wis] Changed - Assembly.Load should return the most current version of an assembly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 9 Nov 2004 18:36:26 -0500 (EST)


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 duncan@ximian.com.

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

--- shadow/69292	2004-11-09 17:10:44.000000000 -0500
+++ shadow/69292.tmp.2362	2004-11-09 18:36:26.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 69292
 Product: Mono: Runtime
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
-Severity: 
+Status: RESOLVED   
+Resolution: NOTABUG
+Severity: Unknown
 Priority: Wishlist
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: duncan@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -37,6 +37,43 @@
 gtk-sharp
 Version=1.0.0.0
 Culture=neutral
 PublicKeyToken=35e10195dab3c99f
 
 The problem affects mono-find-provides as well.
+
+------- Additional Comments From duncan@ximian.com  2004-11-09 18:36 -------
+Looks like this might not be a bug.
+
+With:
+
+using System.Reflection;
+[assembly: AssemblyVersion ("2.0.0.0")]
+public class Foo {
+	public static string Version {
+		get { return Assembly.GetCallingAssembly ().GetName
+().Version.ToString (); }
+	}
+}
+
+and:
+
+C:\src>gacutil /l foo
+gacutil /l foo
+Microsoft (R) .NET Global Assembly Cache Utility.  Version 2.0.40607.16
+Copyright (C) Microsoft Corporation. All rights reserved.
+
+The Global Assembly Cache contains the following assemblies:
+  foo, Version=0.0.0.0, Culture=neutral,
+PublicKeyToken=59ea5ac49fc8e969, processorArchitecture=MSIL
+  foo, Version=1.0.0.0, Culture=neutral,
+PublicKeyToken=59ea5ac49fc8e969, processorArchitecture=MSIL
+  foo, Version=2.0.0.0, Culture=neutral,
+PublicKeyToken=59ea5ac49fc8e969, processorArchitecture=MSIL
+
+Number of items = 3
+
+And a sample app that prints out Foo.Version, the output is always
+0.0.0.0.
+
+NOTABUG ;-(
+