Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is an .exe file generated when publishing a .net core console app in Linux?

Does the .net console app published on Linux-x64 produce an .exe file like in Windows?

like image 635
Shubham Tandon Avatar asked Oct 16 '25 10:10

Shubham Tandon


1 Answers

The .exe is windows supported file which is not support in Linux, if you select Linux when publishing the application, it will just generate the dll which you could use dotnet command in Linux to run this dll.

For example:

enter image description here

like image 120
Brando Zhang Avatar answered Oct 18 '25 23:10

Brando Zhang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!