[Mono-bugs] [Bug 460896] New: Can't embed resources with /RES: unless the resource is in the current directory
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 19 12:57:48 EST 2008
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: mono-bugs at lists.ximian.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Repro:
rolf at linux:~/> mkdir test && cd test
rolf at linux:~/test> touch test.cs
rolf at linux:~/test> mkdir res
rolf at linux:~/test> touch res/resource
rolf at 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.
More information about the mono-bugs
mailing list