Mono .EXE assembly set explorer icon

别来无恙 提交于 2019-11-28 06:53:24

问题


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:


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


来源:https://stackoverflow.com/questions/1622143/mono-exe-assembly-set-explorer-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!