I would like to configure my main project in dotnet to compile as a single executable.
The project is similar to the project generated using dotnet new
:
{ "version": "1.0.0-*", "buildOptions": { "debugType": "portable", "emitEntryPoint": true }, "dependencies": {}, "frameworks": { "netcoreapp1.1": { "dependencies": { "Microsoft.NETCore.App": { "version": "1.1.0" } }, "imports": "dnxcore50" } }, "runtimes": { "win10-x64": {} } }
How can I make it compile as one program.exe file? When I run dotnet publish
, it puts the dll and program.exe in the publish folder, but does not merge them.
source share