Is there a possibility to publish .NET Core Console Application as single file (no matter if it's EXE or DLL)?
I am using .NET Core 1.1 but I am elastic to port my project to another version.
Is there a possibility to publish .NET Core Console Application as single file (no matter if it's EXE or DLL)?
I am using .NET Core 1.1 but I am elastic to port my project to another version.
At the moment, this is not possible because:
runtimeconfig.json
to tell the host (dotnet
/ dotnet.exe
) which shared runtime to use. Even if you IL-Merge all your managed code into a single dll, this file is still required. The host also expects a deps.json
expressing the dependencies of the application..dll
+ .deps.json
and copying over content from runtime-specific NuGet packages. This also includes native libraries that are searched for by file name.The CoreRT project aims to compile a .NET Core application to a single native binary using ahead-of-time compilation but is still in development.