我在 Visual Studio 2008 中使用 c# 桌面基础应用程序,它是 zip 制造商,所以我想让 .exe 文件必须在不安装的情况下运行。那么任何人都可以帮我做到这一点吗?
我想在该 exe 中包含所有 .dll 文件,并希望在不安装它的情况下运行它。
我在 Visual Studio 2008 中使用 c# 桌面基础应用程序,它是 zip 制造商,所以我想让 .exe 文件必须在不安装的情况下运行。那么任何人都可以帮我做到这一点吗?
我想在该 exe 中包含所有 .dll 文件,并希望在不安装它的情况下运行它。
ILMerge allows you to package your dependent DLLs into your .exe file.
http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx
By default VS makes .exe file goto your project debug folder and use it.
作为 ILMerge 的替代方案,您可以将 DLL 打包为嵌入式资源并按需加载它们。