Tiago Vaccari
Tiago Vaccari

Reputation: 1306

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

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

Upvotes: 3

Views: 1260

Answers (1)

David Silveiro
David Silveiro

Reputation: 1602

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

Upvotes: 10

Related Questions