简体   繁体   English

防止 Visual Studio 2010 将资源(图像)嵌入到 exe 文件中

[英]Preventing Visual Studio 2010 from embedding resources (images) into exe file

I add new image file into project by clicking Add Resource -> Add Existing File... After that i change Persistence to "Linked at compile time" from Properties.我通过单击添加资源 -> 添加现有文件将新图像文件添加到项目中...之后,我将持久性从属性更改为“编译时链接”。 My problem is that all of those files getting embedded into final exe file.我的问题是所有这些文件都嵌入到最终的 exe 文件中。 I wish to create small exe file that load those images during execution from Resource folder.我希望创建小的 exe 文件,在从 Resource 文件夹执行期间加载这些图像。 How can I do that?我怎样才能做到这一点?

Don't put the images into the resource file.不要将图像放入资源文件中。 Rather put them in your solution and mark them as "content".而是将它们放在您的解决方案中并将它们标记为“内容”。 then when you open them, open them with normal file operations.然后当你打开它们时,用正常的文件操作打开它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM