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.