[Mono-bugs] [Bug 59486][Nor] New - Unable to use Identifier for Embedded Resources

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Jun 2004 16:07:08 -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 david.humphrey@senecac.on.ca.

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

--- shadow/59486	2004-06-02 16:07:08.000000000 -0400
+++ shadow/59486.tmp.32037	2004-06-02 16:07:08.000000000 -0400
@@ -0,0 +1,64 @@
+Bug#: 59486
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: david.humphrey@senecac.on.ca               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Summary: Unable to use Identifier for Embedded Resources
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+Attempting to provide an Identifier for an Embeded Resource file other 
+than the original resource filename causes error CS2001 - Source 
+File 'xxx' could not be opened.
+
+Steps to reproduce the problem:
+1. Create a C# project with source files under ./src
+2. Create a folder ./resources and add a graphic file(s) (bmp, png, ico, 
+etc.)
+3. Compile using mcs AND provide Identifier(s) for resources other than 
+the filename(s):
+
+mcs /out:.\bin\Testing.dll /recurse:.\src\*.cs /resource:.\resources\scree
+nshot.png,graphic /r:System.Windows.Forms.dll /r:System.Drawing.dll
+
+Actual Results:
+
+Compiler quits before compiling code with the following error (including 
+more resources produces an equal number of errors):
+
+CS2001 - Source file 'graphic' could not be opened.
+
+Expected Results:
+
+When I compile my project using the Microsoft CSC compiler there are no 
+issues:
+
+csc /out:.\bin\Testing.dll /recurse:.\src\*.cs /resource:.\resources\scree
+nshot.png,graphic /r:System.Windows.Forms.dll /r:System.Drawing.dll
+
+This produces a clean DLL and using ILDASM I can see the following in the 
+assembly's Manifest:
+
+.mresource public graphic
+{
+}
+
+How often does this happen? 
+
+This problem always happens.
+
+Additional Information:
+
+I am using Beta 1 of the Mono MCS Compiler.