[Breaking change]: .NET 9 container images no longer install zlib
#42136
Labels
breaking-change
Indicates a .NET Core breaking change
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
in-pr
This issue will be closed (fixed) by an active pull request.
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Description
.NET 9 container images no longer install
zlib
since it is no longer a dependency of the .NET Runtime.Version
.NET 9 Preview 7
Previous behavior
In previous .NET versions, .NET container images installed the latest version of the
zlib
package from the Linux base image package repositories.New behavior
.NET 9 container images no longer install zlib, and no longer update zlib in images where it is already installed from the base image.
Type of breaking change
Reason for change
In .NET 9, the Runtime contains a statically linked version of
zlib-ng
. As a result, the .NET Runtime no longer has a package dependency onzlib
. In order to reduce .NET container image sizes, .NET 9 container images no longer install zlib, and no longer update zlib in images where it is already installed from the base Linux image.Recommended action
For most scenarios, no action is required. If your containerized .NET app has a direct package dependency on
zlib
, you should manually install it in your Dockerfile using the package manager.Feature area
Containers
Affected APIs
No response
Associated WorkItem - 297232
The text was updated successfully, but these errors were encountered: