'What is the default System.IO.Compression.ZipFile CompressionLevel value?
I'm making a zip file using
ZipFile.CreateFromDirectory(DeployDirectory, ZipDirectory + @"\DatabaseDeploy.zip", CompressionLevel.Fastest, true);
I want to include the base directory so I need the overload that takes a CompressionLevel value as third argument. But I don't care about that, I just want it to work the same way as for the overload that just takes string, string.
Anyone knows?
Solution 1:[1]
CompressionLevel.Optimal, for now at least. You could also probably set the argument to null to get the default behavior, even if it changes in the future.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | cham |
