Jack
Jack

Reputation: 16724

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

Upvotes: 10

Views: 8210

Answers (2)

dss
dss

Reputation: 470

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

https://csnative.codeplex.com/

Upvotes: 1

Andre Pena
Andre Pena

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

Related Questions