dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[DotGNU]RE: FW: bmp


From: Neil Cawse
Subject: [DotGNU]RE: FW: bmp
Date: Sun, 23 Nov 2003 11:05:51 -0500

thanks


From: Rhys Weatherley [mailto:address@hidden
Sent: Sat 11/22/2003 4:34 PM
To: Neil Cawse
Subject: Re: FW: bmp

On Sunday 23 November 2003 03:00 am, Neil Cawse wrote:

> C:\cygwin\home\Neil Cawse\pnet\resgen\resgen /compile
> ./System.Windows.Forms.txt ./small_dll.ico ./System.Windows.Forms.resources
> ./small_dll.ico: unknown input resource format

The "resgen" tag is used to convert text resources into binary.  It is not
used to bind resource files, icons, bitmaps, etc to an assembly.  The *.ico
files are bound to "System.Windows.Forms.dll" by the *.build file:

           <resources>
                <includes if="${CONFIG_RUNTIME_INFRA}"                   
name="../resources/en_US/System.Windows.Forms/System.Windows
.Forms.resources"/>
                <includes if="${CONFIG_RUNTIME_INFRA}"
                    name="../resources/en_US/System.Windows.Forms/*.ico"/>
            </resources>

The first "includes" line adds the binary resources created by "resgen".  The
second line adds all of the *.ico files as separate resource entries in the
assembly.

You would add a similar-looking section to the "compile" tag in
"samples.build" that builds "FormsTest.exe".

Cheers,

Rhys.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]