捆绑.NET DLL在无.NET的机器中运行应用程序? [英] Bundle .NET dlls to run application in .NET-less machine?

查看:218
本文介绍了捆绑.NET DLL在无.NET的机器中运行应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

AFAIK, ngen 将MSIL变成本机代码(也被称为JIT之前),但是我从来没有在启动性能影响方面受到太多的关注。 Ngen'd应用程序仍然需要.NET 基类库(运行时)。

AFAIK, ngen turns MSIL into native code (also reffered to as pre-JIT), however I never payed too much attention at it's startup performance impact. Ngen'd applications still require the .NET base class libraries (the runtime).

由于基类库具有.NET程序集所需的一切(正确的),可以使用我的ngen'd应用程序来运送框架的DLL,以便它不需要运行时要安装? (例如,大多数Windows XP机器的情况)

Since the base class libraries have everything our .NET assemblies need (correct?) would it be possible to ship the framework's DLLs with my ngen'd application so that it does not require the runtime to be installed? (e.g., the scenario for most Windows XP machines)

哦,请不要麻烦提到 Remotesoft的Salamander链接器 Xenocode的Postbuild 。他们不是为了我的(和许多)目前的预算(而且他们似乎简单地将框架捆绑在虚拟环境中,这意味着大的下载大小和启动时间慢)

Oh, and please don't bother mentioning Remotesoft's Salamander Linker or Xenocode's Postbuild. They are not for my (and many's) current budget (and they seem to simply bundle the framework in a virtualized enviroinment, which means big download sizes and slow startup times I believe)

编辑:

我现在知道,ngen不会做我以为它做的。

但是可以将.NET文件与应用程序捆绑在一起,而不使用VM?


I know now, ngen doesn't do what I thought it did.
But is it possible to bundle the .NET files with an application, without using a VM?

推荐答案

看看 Microsoft .NET Native


.NET Native将C#编译为native机器代码执行像C ++。
您将继续从生产力和熟悉
的.NET框架中受益于本地代码的出色表现。

.NET Native compiles C# to native machine code that performs like C++. You will continue to benefit from the productivity and familiarity of the .NET Framework with the great performance of native code.

它将集成到Visual Studio 2014

这篇关于捆绑.NET DLL在无.NET的机器中运行应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆