如何将所有发行文件合并为一个.exe文件? [英] How can I combine all release files into ONE .exe file?

查看:262
本文介绍了如何将所有发行文件合并为一个.exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!我有一个问题:如何将所有输出的Released文件组合成一个.exe文件?例如,我有以下文件扩展名:.exe,.pdb,.vshost,vshost.exe,vshost.exe.manifest,然后有2个与我的程序有关的xml文件.
因此,我再次尝试将所有这些文件放入一个文件中.您知道进入Windows程序文件文件夹时的方式吗,这些文件都没有.我基本上是想做同样的事情.

谢谢! :)

Hello! I have a question: How can I combine all of the output Released files into just a single .exe file? Like for example I have these file extensions: .exe, .pdb, .vshost, vshost.exe, vshost.exe.manifest, and then 2 xml files that have to do with my program.

So once again I am trying to get all of these files into possibly one file. Do you know how when you go into your Windows Program Files folder, there are none of these files. I am basically trying to do the same thing.

Thank you! :)

推荐答案

您不需要vshost和PDF文件.我怀疑您也在寻找Debug文件夹,而不是Release.试图将所有内容打包到一个.EXE中只是愚蠢的.您可以将.EXE和.DLL文件与ILMERGE结合使用.您只需要从MS Downloads下载它即可.

清单也可以打包到.EXE中,但是这样做时您将无法轻松对其进行更改.

至于添加其余文件,则几乎没有意义.如果要分发一个文件,则可以构建安装程序项目以打包所有内容.
You don''t need the vshost and PDF files. I suspect you''re also looking in the Debug folder, not the Release. Trying to pack everything into a single .EXE is just stupid. You can combine your .EXE and .DLL files with ILMERGE. You just have to download it from MS Downloads.

The manifest can also be packaged into the .EXE, but you lose the ability to easily make changes to it when you do.

As for adding the rest of the files, there''s little to no point to doing it. If you want a single file for distribution, you can build a Setup projects to package everything up.


您可以创建一个包含所有这些文件的安装程序/部署文件.
请参阅 [
You can create a setup / deployment file that can include all these files.
See this[^] for more information.


您不需要PDB文件或任何提及vshost的文件.它们全部用于调试,甚至在Release版本中也是如此.

您只需要.EXE,.DLL,与.EXE文件名匹配的.config文件以及您知道的任何内容文件.

您只能ILMERGE可执行代码.内容文件无法合并.

但真正的问题是为什么要这样做.这样做没有什么好处.
You don''t need the PDB file or any of the files that mention vshost. They''re all used for debugging, even in the Release build.

You just need the .EXE''s, .DLL''s, the .config file that matches the .EXE filenames and any content files that you know about.

You can only ILMERGE the executable code. Content files cannot be merged in.

But realy question is WHY you want to do this. There is little benefit to doing so.


这篇关于如何将所有发行文件合并为一个.exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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