mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-14 13:45:53 +00:00
Support for PublishSingleFile #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexrp on GitHub (Jul 7, 2019).
With .NET Core 3.0+, I can do
dotnet publish -r linux-x64 /p:PublishSingleFile=trueto get a single, self-contained executable (details). In this case, I only want the packaged archive to contain that executable. So it would be nice if I could say something likedotnet-zip -f netcoreapp3.0 -r linux-x64 --single-fileto get that effect. Today,dotnet-zipwill include everything inbin/Debug/linux-x64, including that single executable, which is of course quite wasteful.If you're wondering why I would even want to archive the single executable, the reason is that it's not particularly well compressed:
@claunia commented on GitHub (Jul 7, 2019):
I find an even bigger reason. See #110
@franklupo commented on GitHub (Feb 26, 2020):
News?
Best regards