从 CD 启动 .NET 应用程序?

发布于 2024-08-02 07:51:44 字数 174 浏览 12 评论 0原文

我们正在尝试找出一种方法来构建可以从 CD 完全独立运行的 .NET 应用程序。基本上,用户弹出 CD,启动到 CD 上的操作系统,然后准系统 .NET Framework 随应用程序一起启动。我们研究过将 .NET Framework 侵入 WinPE,但意识到这实际上是一种不受支持的黑客攻击。有没有人尝试过类似的事情并取得成功?

we're trying to figure out a way to build a .NET application that can run entirely self contained from a CD. Basically user pops in a CD, boots to an operating system on the CD and a barebones .NET Framework starts up with the application. We've looked at hacking the .NET Framework into WinPE but realize it's really an unsupported hack. Has anyone tried anything like this and had any success?

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

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

发布评论

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

评论(3

那支青花 2024-08-09 07:51:44

您几乎需要在计算机上安装 .NET 框架才能正常工作。如果安装了正确的框架,这将不是问题 - 只需运行可执行文件即可。

像 NGEN 这样的工具仍然需要安装框架。

但是,有一些商业工具,例如 PostBuild,可以使用通过并将所有必需的依赖项编译为本机代码。理论上,这将提供您所需的行为。

You pretty much need to have the .NET framework installed on the machine for this to work. If the correct framework is installed, this won't be an issue - just run the executable.

Tools like NGEN still require the framework to be installed.

However, there are some commercial tools, such as PostBuild, that will go through and compile all of the required dependencies into native code. In theory, this would provide your required behavior.

同尘 2024-08-09 07:51:44

您可以查看 Mono,因为他们有一个可嵌入版本的框架,无需安装 .NET Framework(或 Mono)。无法告诉您这需要多少工作,但是请看这里,它是记录并支持。

You could look at Mono, as they've got an embedable version of the framework which requires no .NET Framework (or Mono) to be installed. Can't tell you how much work that'll be, but take a look here, it's documented and supported.

沉鱼一梦 2024-08-09 07:51:44

我很幸运,找到了您要找的东西:http://www.monoppix.com/

I got lucky and found what your looking for: http://www.monoppix.com/

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