Add `EnableCompressionInSingleFile` to `DotNetCorePublishSettings`
See original GitHub issueEnableCompressionInSingleFile
is not yet included in DotNetCorePublishSettings
.
Compress assemblies in single file app
Starting with .NET 6, single file apps can be created with compression enabled on the embedded assemblies. Set EnableCompressionInSingleFile property to true to achieve this. The produced single-file will have all of the embedded assemblies compressed which can significantly reduce the size of the executable. Compression comes with a performance cost. On application start, the assemblies must be decompressed into memory, which takes some time. It’s recommended to measure both the size impact and startup cost impact of enabling compression before using it as the impact varies a lot between different applications. https://docs.microsoft.com/en-us/dotnet/core/deploying/single-file#compress-assemblies-in-single-file-app
_Originally posted by @SIkebe in https://github.com/cake-build/cake/discussions/3606_
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
@SIkebe Good looking code. Looks exactly what I wrote 😄
@augustoproiete All good! I just saw it and forgot to ask to do it. Good practice nonetheless.
🎉 This issue has been resolved in version v2.0.0 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀