我对
compile C# code to native machine code
下载
.NET native
的想法感到兴奋,并提出了这一想法.但是我无法将我的构建配置为x86和x64都不能编译.事实上,除了“任何一个cpu”之外,这是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.