Reputation: 16724
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:
Here's the VS about:
Edit: When I came to install, I selected this features:
Upvotes: 10
Views: 8210
Reputation: 470
This c# to c transpiler may be a good option for non Windows store applications
https://csnative.codeplex.com/
Upvotes: 1
Reputation: 59336
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.
Upvotes: 15