[Mono-bugs] [Bug 56564][Nor] New - Incorrect description for CS1548 when the strongname file doesn't contain the private key

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Apr 2004 15:58:00 -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=56564

--- shadow/56564	2004-04-06 15:58:00.000000000 -0400
+++ shadow/56564.tmp.18457	2004-04-06 15:58:00.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 56564
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+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: Incorrect description for CS1548 when the strongname file doesn't contain the private key
+
+Description of Problem:
+We do report CS1548 when the strongname file doesn't contain the private
+key - but the error message is misleading (as the file is valid but not the
+context in which it's being used).
+
+Steps to reproduce the problem:
+1. cd /mcs/errors
+2. mcs cs1548-3.cs
+
+Actual Results (mcs):
+error CS1548: Could not strongname the assembly. File `cs1548.pub'
+incorrectly encoded.
+
+Expected Results (csc):
+error CS1548: Cryptographic failure while signing assembly 'cs1548.exe' --
+'Key file 'cs1548.pub' is missing the private key needed for signing'
+
+How often does this happen? 
+Always
+
+Additional Information:
+- The files cs1548-3.cs and cs1548.pub have been commited in /mcs/errors.
+- This is permitted (no CS1548) only when the assembly has the attribute
+AssemblyDelaySign(true).