Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created August 18, 2019 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/9365a90ca1b9491303c1f666b5c36f30 to your computer and use it in GitHub Desktop.
Save guitarrapc/9365a90ca1b9491303c1f666b5c36f30 to your computer and use it in GitHub Desktop.
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
#!/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