[Mono-bugs] [Bug 56563][Nor] New - We do not report CS1577 when referencing an assembly without a strongname.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Apr 2004 15:34:25 -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=56563
--- shadow/56563 2004-04-06 15:34:25.000000000 -0400
+++ shadow/56563.tmp.17999 2004-04-06 15:34:25.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 56563
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: sebastien@ximian.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: We do not report CS1577 when referencing an assembly without a strongname.
+
+Description of Problem:
+A strongnamed assembly can only reference other strongnamed assemblies.
+
+Steps to reproduce the problem:
+1. Create a new strongname file named strongname.snk
+ sn -k strongname.snk
+2. Compile a library that isn't strongnamed
+ mcs /target:library weaklib.cs
+3. Compile an application that is strongnamed and reference the library
+ mcs strongname.cs /r:weaklib.dll
+
+
+Actual Results (with mcs)
+Compilation succeeded
+
+Expected Results (with csc)
+error CS1577: Assembly generation failed -- Referenced assembly 'weklib'
+does not have a strong name.
+
+How often does this happen?
+Always.
+
+Additional Information:
+- The fact that the application use, or not, AssemblyDelaySign(true)
+doesn't change the error.
+- If the library weaklib was strongnamed then compilation would succeed.