Skip to content

Why does EnableCompressionInSingleFile require Self-Contained=true? #61424

Answered by vitek-karas
robdplatt asked this question in Q&A
Discussion options

You must be logged in to vote

It's a bit technically challenging to do so. With self-contained, the entire runtime + libraries are part of the executable. Among other things this includes the native parts of the compression algorithms used in the libraries. The host in this case can directly call into the compression algorithm since it's included anyway.

If we were to enable this for framework dependent applications, either the host would have to carry the decompression code in it or it would have to pull it from the framework. The first option is problematic - currently we have only one host for FDD apps, so we would either have to make it larger for everybody, or add another one (more complexity). The second option …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by robdplatt
Comment options

You must be logged in to vote
4 replies
@vitek-karas
Comment options

@robdplatt
Comment options

@vitek-karas
Comment options

@robdplatt
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants