This guide tells how to embed CLR assemblies (.dll) onto a single executable. This works for WPF, WinForms and console .NET applications.
Source - original article
First, we need to add special section to .csproj
file to make MSBuild embed referenced assemblies