mirror of
https://github.com/quamotion/dotnet-packaging.git
synced 2026-02-13 21:30:41 +00:00
Unix access rights are not properly set when running dotnet zip on Windows
#8
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 @kekekeks on GitHub (Oct 2, 2017).
Even if you publish with linux/osx runtime, access rights won't be set, since Win32 doesn't support them.
SharpZipLib doesn't support setting them manually, so consider using
System.IO.Compression.ZipArchiveand setting them using ZipArchiveEntry::ExternalAttributes@qmfrederik commented on GitHub (Oct 2, 2017):
Thanks for reporting this!
Yes, this something that's worth fixing. I'm not sure using
System.IO.Compression.ZipArchiveis the right approach, though. There are a lot of issues with that library and it bit me more than once. Perhaps SharpCompression is a better option; not sure whethery they support setting external attributes.