单声道.EXE程序集设置资源管理器图标 [英] Mono .EXE assembly set explorer icon
问题描述
在Linux上使用gmcs进行编译时,如何设置最终EXE将使用的资源管理器图标?
When compiling with gmcs on Linux, how can I set the explorer icon the final EXE will use?
我有一个.ico文件附加到输出exe 。
I have a .ico file to attach to the output exe.
答案必须是构建 - 自动化并在Linux上执行(没有葡萄酒 - 构建机器架构不是x86)。
The answer must be build-automatable and execute on Linux (w/o wine -- build machine architecture is not x86).
可以使用针对Windows x86的GCC和binutils。如果你给出他们的简短(非交叉)名称的答案,我将能够很容易地找出他们的交叉名称。
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.
推荐答案
看起来它的运行方式与.Net相同(从查看Visual Studio中构建的输出窗口中学到的):
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
这样的事情:
gmcs myprog.cs /win32icon:my.ico
这篇关于单声道.EXE程序集设置资源管理器图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!