Creating your own executable using C #

How can I use my own EXE using C #, I want to compile a basic EXE that will work without using a .net structure. I heard about ngen.exe, can anyone give me examples of ngen.exe or some better ways. In addition, I will have the runtime of the application being created, how can I put it in the application so that anyone who uses my language can use its functions.

+6
source share
1 answer

I can’t do it. Everything written in C # requires that the .NET platform be installed on the machine on which it is running. NGEN is just optimization; it does not eliminate the need for structure.

For this you need C ++ or some other language that does not require runtime.

+7
source

Source: https://habr.com/ru/post/899807/


All Articles