[Mono-bugs] [Bug 49555][Nor] Changed - private extern Assembly LoadAssembly (AssemblyName assemblyRef, Evidence securityEvidence) does not expose strongname publickey

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 11 Oct 2003 14:13:55 -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 spouliot@videotron.ca.

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

--- shadow/49555	2003-10-11 13:07:28.000000000 -0400
+++ shadow/49555.tmp.20588	2003-10-11 14:13:55.000000000 -0400
@@ -140,6 +140,36 @@
 // save data into assembly
 
 should do the trick.
 
 
 
+
+------- Additional Comments From spouliot@videotron.ca  2003-10-11 14:13 -------
+Here a test to prove this
+
+1. Extract the public from the hello.snk
+sn -p hello.snk hello.pub
+
+2. Modify helloworld.cs to reference hello.pub
+-[assembly: AssemblyKeyFile ("hello.snk")]
++[assembly: AssemblyKeyFile ("hello.pub")]
+
+3. Recompile helloworld.cs using mcs
+
+C:\Temp\snhard\snhard\bin\Debug>mcs helloworld.cs
+Compilation succeeded
+
+4. Execute snkey.exe using the Microsoft runtime
+
+C:\Temp\snhard\snhard\bin\Debug>snkey helloworld.exe
+160
+
+-> this proves that MCS can generate valid assemblies containing 
+public keys and that the problem lies in the runtime.
+
+4. Execute snkey.exe (again) using the Mono runtime
+
+C:\Temp\snhard\snhard\bin\Debug>mono snkey.exe helloworld.exe
+0
+
+No change here (as expected)