在.net中添加资源 [英] adding resources in.net

查看:95
本文介绍了在.net中添加资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个小问题.当我们向.net项目中添加资源以及构建项目时,资源是否会自动嵌入exe文件中?

我的意思是我只是注意到我将一个应用程序交付给了我的朋友,该应用程序只有exe文件和一些dll,但是图标和其他数据文件(未提供资源中的内容).该应用程序仍在运行.

谁能解释为什么会发生这种情况?

I have a small problem. When we add resources to our .net projects and when we build the project , does the resources get automatically embedded in the exe file?

what i mean is i just noticed that i shipped an application to my friend which had only exe file and some dlls, but the icons and other data files (present in the resources were not given). Still the application was running.

Can anyone explain why this happened?

推荐答案

是的,如果您以这种方式进行设置(默认设置),它们会自动添加到程序集二进制文件中.
Yes, they automatically get added to the assembly binary if you set it up that way (which is the default).

blockquote>


这篇关于在.net中添加资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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