/CoreSingleFile

Example for creating a single-file native executable console application for .NET Core

Primary LanguageC#MIT LicenseMIT

README

This is a simple example for creating a single-file executable console application for .NET Core. Normally, when publishing a self-contained console application with .NET Core, all the dependencies will also be included in the output folder. This is painful to distribute since it's not a single file. Currently (Aug 2018), publishing to a single-file executable is not available in the dotnet CLI. However, via this initial example combined with the fact that ILCompiler is now available as a NuGet package, I was able to create a simple Hello World example.

Enjoy!