How do I generate an executable that runs on any machine without .Net installed?
The one in the bin/debug
folder is not useful because it needs .Net to run.
How do I generate an executable that runs on any machine without .Net installed?
The one in the bin/debug
folder is not useful because it needs .Net to run.
The normal thing is that .Net is installed. You can make an executable and include all dependencies by dropping the default .Net installed on the machine if you can use .Net Core . . You will still need to send it to the .Net framework, but at least it will not require it to be part of Windows as part of the operating system engine (you do not need to install anything, just copy everything you need).
You can also get similar effect with Mono , but it is less recommendable in most cases.
Soon we will have .Net Native for general use that will create totally non-dependable executables if you like.
Otherwise the only solution is to include the .Net default in the installer and include it in the operating system, if it does not have it.
Unless there is the option to do in another language that does not require .Net, such as C or C ++.