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:
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.
This c# to c transpiler may be a good option for non Windows store applications
https://csnative.codeplex.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With