https://bugzilla.novell.com/show_bug.cgi?id=460896
Summary: Can't embed resources with /RES: unless the resource is
in the current directory
Product: Mono: Compilers
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: C#
AssignedTo: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
Found By: ---
Repro:
r...@linux:~/> mkdir test && cd test
r...@linux:~/test> touch test.cs
r...@linux:~/test> mkdir res
r...@linux:~/test> touch res/resource
r...@linux:~/test> gmcs -target:library test.cs /RES:res/resource
Unhandled Exception: System.IO.FileNotFoundException: Could not find file
'resource'
at System.Reflection.Emit.AssemblyBuilder.check_name_and_filename
(System.String name, System.String fileName, Boolean fileNeedsToExists)
[0x00000]
at System.Reflection.Emit.AssemblyBuilder.AddResourceFile (System.String
name, System.String fileName, ResourceAttributes attribute, Boolean
fileNeedsToExists) [0x00000]
at System.Reflection.Emit.AssemblyBuilder.AddResourceFile (System.String
name, System.String fileName, ResourceAttributes attribute) [0x00000]
at Mono.CSharp.Resources+LinkedResource.Emit () [0x00000]
at Mono.CSharp.Resources.Emit () [0x00000]
at Mono.CSharp.Driver.Compile () [0x00000]
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]
It works with:
/res: (lowercase)
-res:
/RES:<file in current directory>
-RES:<file in current directory>
but not with:
/RES:somedir/resource
-RES:somedir/resurce
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs