Skip to content

Instantly share code, notes, and snippets.

@EifelMono
Created September 7, 2022 06:39
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 EifelMono/dec804195ad4476cb0a8857d813fd26c to your computer and use it in GitHub Desktop.
Save EifelMono/dec804195ad4476cb0a8857d813fd26c to your computer and use it in GitHub Desktop.
SingleExeSelfContained to artifacts
if exist artifacts rmdir artifacts /s /q
dotnet publish -c Release -r win-x64 --output ./artifacts --self-contained true -p:PublishSingleFile=true -p:IncludeAllContentForSelfExtract=true -p:IncludeAllContentForSelfExtract=true -p:CopyOutputSymbolsToPublishDirectory=false -p:EnableCompressionInSingleFile=true -p:DebugSymbols=false -p:DebugType=None
if exist artifacts.7z del artifacts.7z
7z a artifacts artifacts
@EifelMono
Copy link
Author

first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment