使用WPF和F#嵌入应用程序图标 [英] Embed an application icon using WPF and F#

查看:153
本文介绍了使用WPF和F#嵌入应用程序图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用WPF和F#将应用程序图标嵌入到application.exe中?我在任何地方都找不到.

How to embed an application icon into application.exe using WPF and F#? I did not find it anywhere.

推荐答案

(更新:链接不再有效-已删除)

(Update: link is no longer alive -- removed)

报价:

使用以下行制作一个.rc文件: 1个图标"icon.ico"

"Make a .rc file with the following line: 1 ICON "icon.ico"

然后使用 rc.exe进行编译,并将.res文件包含在项目的属性页中. 您也可以在项目中包含.resources文件,但系统不会从这些文件中提取应用程序图标."

Then compile it with rc.exe and include the .res file in your project's properties page. You may also include .resources files in your project but the system will not pull the application icon from those."

这篇关于使用WPF和F#嵌入应用程序图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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