Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
mkdir SingleFileExe
cd SingleFileExe
dotnet new console
dotnet publish -r win10-x64 --self-contained=false /p:PublishSingleFile=true -o ./bin/out
./bin/out/SingleFileExe.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.