In the previous exercise, we learnt how to publish and execute a .NET Core Console App! In case you want to review that exercise, you can access it from here.
In this exercise, we’ll look at a quick way to turn a .DLL to an .EXE. Please note, when you build a .NET Core console app, it compiles the app to a DLL.
Here’s I’ll show you how to create an EXE:
- Go to the command prompt and navigate to the location where the project is stored
- Issue the following command: dotnet build -r win10-x64
You’ll find the .EXE in the folder i.e. Win10-x64. See image below:
Hope this was helpful.