c# compile just one exe code example Example: c# compile just one exe dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true