如何将CLR转换为EXE

发布于 2024-08-03 02:38:16 字数 102 浏览 1 评论 0原文

当我们在 VC# 中创建应用程序时,特别是 .net 3.5,它们被编译为 CLR,我想要的是它们应该被编译为 EXE 可执行代码,不需要 .NET Framework 环境来运行。是否可以

when we create an application in VC#, talking about .net 3.5 in particular, the are comipled to CLR, what i want is that they should be compiled to EXE executable code that doesn't require .NET Framework Environment for them to run. Is it possible

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

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

发布评论

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

评论(4

离鸿 2024-08-10 02:38:16

我猜您是在问如何静态链接应用程序所需的框架部分。有关如何执行此操作的信息,请参阅 Jon Skeet 提供的此链接:http: //www.yoda.arachsys.com/csharp/faq/#framework.required

I guess you're asking how to statically link the parts of the framework your application needs. Please see this link from Jon Skeet for info on how to do that: http://www.yoda.arachsys.com/csharp/faq/#framework.required

池木 2024-08-10 02:38:16

有第三方产品可以做到这一点。据我所知没有免费的。

There are 3rd party products that do this. I know of no free ones.

夏了南城 2024-08-10 02:38:16

即使您获得第三方产品,我认为它只是以某种方式将 .NET 运行时打包在那里。我不知道它还会如何运行。

为什么不创建一个以 .NET 框架为要求的安装程序呢?它应该检查它并安装它(如果用户还没有)。

Even if you get a third party product, I think it just packages the .NET runtime in there somehow. I don't know how else it would run.

Why don't you just create an installer that has the .NET framework as a requirement? It should check for it and install it if the user doesn't have it already.

塔塔猫 2024-08-10 02:38:16

你可以使用 MONO 提前编译器

you can use MONO's ahead of time compiler

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