在已发布的C#EXE中更改图标 [英] Changing the icon in a released C# EXE

查看:84
本文介绍了在已发布的C#EXE中更改图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个已发布的混淆的C#EXE程序集,我需要更新Windows资源管理器中显示的图标(针对特定客户).最好使用批处理文件(命令行)方法.我不得不再次辞职(sn.exe),我不需要帮助.

我知道如果我要创建其他构建配置,这是可能的,但是我必须对其进行两次构建,对它进行两次混淆,并且不希望不必添加它来延长每日构建时间.

有想法吗?有人曾经做过吗?您使用什么方法?

I have a released obfuscated signed C# EXE assembly that I need to update the icon that is displayed in Windows Explorer (for a specific customer). Preferably with a batch file (command line) method. I''d have to resign it again (sn.exe), I don''t need help with that.

I know this is possible if I were to create a different build configuration but then I''d have to build it twice, obfuscate it twice and would prefer not to have to add this to extend the daily build time.

Ideas? Has anyone had to do this before? What method did you use?

Thanks!

推荐答案

带有图标的一般想法是使用exe文件中包含的图标列表进行一次构建.然后,您可以选择最终部署应用程序时包含在应用程序中的任何图标.

您现在可以创建一个快捷方式,然后更改该快捷方式的图标. :-\
The general idea with icons is to build once with a list of icons included in the exe. You can then choose any one of the icons you included within the application when it is finally deployed.

You could for now create a shortcut and then change the icon for this shortcut. :-\


只是一个建议-也许Resource Hacker在这种情况下会有所帮助? http://www.angusj.com/resourcehacker/ [
Just a proposal - maybe Resource Hacker will help in this case? http://www.angusj.com/resourcehacker/[^]

Please let me know if it will.


这篇关于在已发布的C#EXE中更改图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆