[Mono-bugs] [Bug 24290] New - Assembly attribute type resolved differently with different file order

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 May 2002 15:50:53 -0000


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

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

--- shadow/24290	Mon May  6 11:50:53 2002
+++ shadow/24290.tmp.13569	Mon May  6 11:50:53 2002
@@ -0,0 +1,41 @@
+Bug#: 24290
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Assembly attribute type resolved differently with different file order
+
+When the assembly attributes are set in their own file, mcs may or may not
+be able to compile them depending on the order the file that contains them
+appears on the command line.
+
+==cut cut=== assembly.cs
+using System.Reflection;
+[assembly: AssemblyTitle("Test")]
+==cut cut==
+
+==cut cut=== main.cs
+class T {
+	static void Main() {}
+}
+==cut cut==
+
+Works:
+mcs main.cs assembly.cs
+
+Fails:
+mcs assembly.cs main.cs
+./assembly.cs(3) error CS0246: Cannot find type `AssemblyTitleAttribute'
+./assembly.cs(3) error CS0246: Could not find attribute 'AssemblyTitle'
+(are you missing a using directive or an assembly reference ?)