[Mono-bugs] [Bug 335287] New: Resgen2-compiled resource won't work on .Net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 19 12:09:06 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=335287

           Summary: Resgen2-compiled resource won't work on .Net
           Product: Mono: Compilers
           Version: 1.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Other.
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: daniel at hofmannmail.ath.cx
         QAContact: mono-bugs at ximian.com
          Found By: ---


Created an attachment (id=179485)
 --> (https://bugzilla.novell.com/attachment.cgi?id=179485)
Demonstrates runtime difference when resx-File was compiled with resgen

When I use a resx-resource that contains an ImageListStreamer I get the
following strange but persistent behaviour:

Compiling the resx-file with Mono's resgen2 and afterwards compiling it into an
Assembly (using either csc or gmcs) that actually accesses it results in a
runtime exception (InvalidOperationException) when executing on .Net but not,
when executing on Mono. On Mono the result is actually what I expect it to be.

When I compile the same stuff using MSBuild or VS it behaves as expected on
both Mono and .Net.

I've included an attachment containing a .csproj-File a resx-File and .cs-Files
to demonstrate the error.

To compile using resgen type:
resgen2 Form1.resx Form1.resources
gmcs|csc /r:System.Data /r:System.Drawing /r:System.Windows.Forms
/res:Form1.resources,Form1.resources /target:exe *.cs

To compile using msbuild type:
MSBuild.exe Project2.csproj


-- 
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