Created
September 7, 2022 06:39
-
-
Save EifelMono/dec804195ad4476cb0a8857d813fd26c to your computer and use it in GitHub Desktop.
SingleExeSelfContained to artifacts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
first