如何将 C# 解决方案部署到单个 .exe 文件中

发布于 2024-10-07 01:13:23 字数 495 浏览 0 评论 0原文

可能的重复:
编译为 C# 应用程序的独立 exe在 Visual Studio 2010 中
.Net 整个应用程序作为单个 .exe 文件? < /p>

嘿伙计们,

我有一个连接到数据库的 C# 解决方案,我想将此解决方案部署到单个 .Exe 文件中。就像记事本一样,在某种程度上使我能够发送exe文件,然后双击它,它开始运行..

我怎样才能做这样的事情?

Possible Duplicates:
Compile to stand alone exe for C# app in Visual Studio 2010
.Net whole application as a single .exe file ?

Heey Guys,

so i have a C# Solution that connects to Database and i want to deploy this solution into a single .Exe file. like NotePad , in a way that makes me able to send the exe file and then double click it and it starts running ..

how can i do something like that ??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

萌逼全场 2024-10-14 01:13:23

I think ILMerge is what you want. However, reflection can ruin its day.

没企图 2024-10-14 01:13:23

是的,如果您不使用反射,ILMerge 就很棒。它将一组程序集合并到给定的主程序集中。

Yeah, ILMerge is great if you aren't using reflection. It merges a set of assemblies into a given primary assembly.

樱桃奶球 2024-10-14 01:13:23

我使用 DeepSea obfuscator(商业产品)来混淆多个项目的输出程序集并将其合并为单个程序集(.exe 或 . dll)。

I use DeepSea obfuscator (commercial product) to obfuscate and merge the output assemblies from several projects into a single assembly (.exe or .dll).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文