[Mono-bugs] [Bug 60519][Maj] New - Assembly.GetReferencedAssemblies doesn't return the public key token
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Jun 2004 20:59:59 -0400 (EDT)
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 sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=60519
--- shadow/60519 2004-06-21 20:59:59.000000000 -0400
+++ shadow/60519.tmp.14110 2004-06-21 20:59:59.000000000 -0400
@@ -0,0 +1,63 @@
+Bug#: 60519
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastien@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Assembly.GetReferencedAssemblies doesn't return the public key token
+
+Description of Problem:
+Assembly.GetReferencedAssemblies doesn't return the public key token.
+Component is "runtime" because the method is an icall.
+
+
+Steps to reproduce the problem:
+1. Compile this source code
+
+using System;
+using System.Reflection;
+
+public class AssemblyReference
+{
+ public static void Main (string[] args)
+ {
+ Assembly main = Assembly.Load (args [0]);
+ AssemblyName[] refs = main.GetReferencedAssemblies ();
+ for (int i=0; i < refs.Length; i++) {
+ AssemblyName an = refs [i];
+ Console.WriteLine (an.FullName);
+ }
+ }
+}
+
+
+2. Execure with "System.Xml" as it's parameter
+
+
+Actual Results:
+# mono assref.exe System.Xml
+mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=null
+System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=null
+
+
+Expected Results:
+Public key token shouldn't be null.
+
+
+How often does this happen?
+Always
+
+
+Additional Information:
+The culture and public key token aren't copied in
+ves_icall_System_Reflection_Assembly_GetReferencedAssemblies (icall.c)