从 CD 启动 .NET 应用程序?
我们正在尝试找出一种方法来构建可以从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您几乎需要在计算机上安装 .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.
您可以查看 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.
我很幸运,找到了您要找的东西:http://www.monoppix.com/
I got lucky and found what your looking for: http://www.monoppix.com/