Forums

how does cobra deal with resource files

General discussion about Cobra. Releases and general news will also be posted here.
Feel free to ask questions or just say "Hello".

how does cobra deal with resource files

Postby RIGHT_THEN » Tue Jan 12, 2010 2:52 pm

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
RIGHT_THEN
 
Posts: 99

Re: how does cobra deal with resource files

Postby hopscc » Wed Jan 13, 2010 12:01 am

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'
hopscc
 
Posts: 632
Location: New Plymouth, Taranaki, New Zealand

Re: how does cobra deal with resource files

Postby RIGHT_THEN » Wed Jan 13, 2010 1:48 am

Thanks Mr. hopscc
for the info


Thankyou
RIGHT_THEN
RIGHT_THEN
 
Posts: 99


Return to Discussion

Who is online

Users browsing this forum: No registered users and 51 guests