.NET 本机在哪里?

Where's the .NET native?

我对 compile C# code to native machine code downloaded the .NET native 的想法感到兴奋并安装了它。但是我无法将我的构建配置为既不编译为 x86 也不编译为 x64。事实上,除了 "any CPU" arch 之外别无他法:

VS 的内容如下:

编辑: 我来安装的时候选择了这个功能:

那是因为您的应用程序是 Windows Forms 应用程序。来自文档:

This developer preview currently enables building apps for Windows Store on ARM and x64 architectures (stay tuned for x86.) .NET Native will soon enable a consistent and converged experience across devices. Today's preview supports Windows Store applications. We will continue to evolve and improve native compilation for the range of .NET applications.

这个 c# 到 c 的转换器可能是非 Windows 商店应用程序的不错选择

https://csnative.codeplex.com/