Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Native Compilation for C# desktop apps

I have a C# desktop application.

I would like to compile it into native code for speed execution and add a level of protection to my code.

I notice that MS offers this for Window Apps? But not desktop Apps?

I have also heard (somewhere) that I could use Mono which would do the native compilation. Is that true? If so, would using 3rd party tools like Aforge.Net and EMGU be a stopping point?

Thanks

like image 743
Andrew Simpson Avatar asked Nov 06 '14 12:11

Andrew Simpson


People also ask

What is native compiler in C?

Native compiler are compilers that generates code for the same Platform on which it runs. It converts high language into computer's native language. For example Turbo C or GCC compiler. 2.

What is natively compiled code?

Native compilation refers to the process of converting programming constructs to native code, consisting of processor instructions without the need for further compilation or interpretation.

Is compiler and native compiler same?

What Does Native Compiler Mean? A native compiler is a compiler that works on compilation for the same technology on which it runs. It uses the same operating system or platform as the software for which it is assembling machine language.

Can you compile C# to native code?

NET Native is a precompilation technology for building and deploying UWP apps. . NET Native is included with Visual Studio 2015 and later versions. It automatically compiles the release version of UWP apps that are written in managed code (C# or Visual Basic) to native code.


1 Answers

If you're writing an app for Windows 10 UWP, you can now use Microsoft .NET Native to AOT compile your app into native code.

like image 81
Roy Goode Avatar answered Oct 05 '22 12:10

Roy Goode