Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where's the .NET native?

I was excited about the idea to compile C# code to native machine code downloaded the .NET native and intalled it. But I can't configure my build to compile to neither x86 nor x64. In fact, no other than "any CPU" arch is available:

enter image description here

Here's the VS about:

enter image description here

Edit: When I came to install, I selected this features:

enter image description here

like image 823
Jack Avatar asked Apr 05 '15 22:04

Jack


2 Answers

That's because your application is a Windows Forms application. From the docs:

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.

like image 129
André Pena Avatar answered Nov 10 '22 00:11

André Pena


This c# to c transpiler may be a good option for non Windows store applications

https://csnative.codeplex.com/

like image 37
dss Avatar answered Nov 09 '22 22:11

dss