How to create a single dotnet kernel executable

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.

+6
source share
1 answer

The closest to the answer is probably CoreRT ( .Net Core to Native). This will work just fine, but there is a small problem - this project is still at the beginning of upha. A year ago, they showed us a demo, but it was a very simple example, and will not work for more advanced projects. Another information on how to do this .

+2
source

Source: https://habr.com/ru/post/1013163/


All Articles