Page 1 of 1

how does cobra deal with resource files

PostPosted: Tue Jan 12, 2010 2:52 pm
by RIGHT_THEN
Gentlemen,

if one was to include .bmp or icon files or other kind of files that are
generally called resource files. and would want to encapsulate them in the
output assembly being produced than what sort of command line options will have
to be given

Thankyou
RIGHT_THEN

Re: how does cobra deal with resource files

PostPosted: Wed Jan 13, 2010 12:01 am
by hopscc
Theres no cobra specific compile switches for those. You have to specify them as pass through values to the
native csharp compiler using the '-native-compiler-args' or '-sharp-args' switch

e.g for an icon file :generally
Code: Select all
cobra -native-compiler-args:/win32icon:<iconfile> <...rest of compile line>

specifically for an icon file named (creatively ) 'app.ico'
Code: Select all
cobra -native-compiler-args:"/win32icon:app.ico" ...


for a resource file
Code: Select all
/cobra -sharp-args:/win32res:<resourcefile> <...rest of compile line>


for more, search the forum discussion for 'sharp args'

Re: how does cobra deal with resource files

PostPosted: Wed Jan 13, 2010 1:48 am
by RIGHT_THEN
Thanks Mr. hopscc
for the info


Thankyou
RIGHT_THEN