Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

creating a native executable using C#

What is a way I can a native EXE using C#, I want to compile a basic EXE which will run without the need for the .net framework. I've heard of ngen.exe can anyone give me examples of ngen.exe or any better ways. Also I will have a runtime for the application being generated how can I place it into the application so anybody who is using my language can use its features.

like image 785
Steven Avatar asked Oct 21 '11 15:10

Steven


People also ask

What is a native executable?

A program ready to run in the native language of a particular CPU family. The term implies that there are no additional conversion steps necessary in order for the instructions in the program to be executed.

Does Quarkus use Docker?

Docker. The extension quarkus-container-image-docker is using the Docker binary and the generated Dockerfiles under src/main/docker in order to perform Docker builds.

What is Quarkus native executable?

quarkus.native.container-build=true allows for creating a Linux executable without GraalVM being installed (and is only necessary if you don't have GraalVM installed locally or your local operating system is not Linux)

Does Quarkus use GraalVM?

With Netty and Vert. x for imperative and reactive development, Quarkus also supports the compilation of java code to a native executable. Quarkus needs GraalVM installation for building the native executables. A short performance difference of Quarkus can be seen here.


1 Answers

Can't do that. Anything written with C# will require the .NET framework to be installed on the machine in which it runs. NGEN is just an optimization; it does not remove the need for the framework.

To do this you'll need C++ or some other language that does not require a runtime.

like image 94
kprobst Avatar answered Sep 29 '22 13:09

kprobst