Skip to content

请问单文件是怎么实现的? #535

Answered by zdpcdt
ismlsmile asked this question in Q&A
Discussion options

You must be logged in to vote

在发布命令添加/p:PublishSingleFile=true 参数

具体可以参考Semi.Avalonia的Action

dotnet publish demo/Semi.Avalonia.Demo.Desktop -r win-x64 -c Release --sc /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@heartacker
Comment options

@zdpcdt
Comment options

Answer selected by zdpcdt
Comment options

You must be logged in to vote
1 reply
@zdpcdt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #534 on January 18, 2025 13:31.