Build .NET Core console application to output an EXE
For debugging purposes, you can use the DLL file. You can run it using dotnet ConsoleApp2.dll. If you want to generate an EXE file, you have to generate a self-contained application. To generate a self-contained application (EXE in Windows), you must specify the target runtime (which is specific to the operating system you target). Pre-.NET … Read more