Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create an exe for .NET Core console applications?

Tags:

c#

.net

.net-core

I need to get the exe file from a .NET Core console application, but I only get a DLL output.

like image 972
Tiago Vaccari Avatar asked Nov 29 '25 19:11

Tiago Vaccari


1 Answers

You could create the exe running the following command, if required for release or debugging purposes, assuming also a 64bit Win10 OS, you could do the following :)

Debugging:

dotnet publish -c Debug -r win10-x64

Release:

dotnet publish -c Release -r win10-x64
like image 196
David S Avatar answered Dec 01 '25 07:12

David S