Mono .EXE assembly set explorer icon

2019-01-27 11:32发布

When compiling with gmcs on Linux, how can I set the explorer icon the final EXE will use?

I have a .ico file to attach to the output exe.

The answer must be build-automatable and execute on Linux (w/o wine -- build machine architecture is not x86).

GCC and binutils targeting Windows x86 are available. If you give the answer referring to their short (non-cross) names I'll be able to figure out their cross names easily enough.

1条回答
forever°为你锁心
2楼-- · 2019-01-27 11:52

Looks like it is done the same way as .Net (learned from looking at the output window of a build in Visual Studio):

/win32icon:my.ico

So something like this:

gmcs myprog.cs /win32icon:my.ico
查看更多
登录 后发表回答