question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `EnableCompressionInSingleFile` to `DotNetCorePublishSettings`

See original GitHub issue

EnableCompressionInSingleFile 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:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
connor-marchandcommented, Oct 17, 2021

@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.

0reactions
cake-build-botcommented, Nov 27, 2021

🎉 This issue has been resolved in version v2.0.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

API - DotNetPublishSettings Class
Argument customization is a way that lets you add, replace or reuse arguments passed to a tool. ... EnableCompressionInSingleFile, bool?
Read more >
Create a single file for application deployment - .NET
Single-file apps can be created with compression enabled on the embedded assemblies. Set the EnableCompressionInSingleFile property to true .
Read more >
Cake v2.0.0 released
AddPath command to add a directory to the system PATH variable ... #3607 Add EnableCompressionInSingleFile to DotNetCorePublishSettings .
Read more >
Cake.NuGet 2.0.0
Cake Module providing NuGet install capabilities for i.e. preprocessor directives like #addin, #tool and #load.
Read more >
Automating .NET Core deployments to different platforms with ...
Recently I've been using Cake to automate code deployments to Windows and Ubuntu devices. Since .NET Core 2 became available, I've been able ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found