This version brings the following new features and enhancements:
-
The .NET SDK now natively supports containerizing any kind of publishable project! Web and Worker projects work with no modifications, but console applications will need to add an MSBuild property to signal support. Supported projects must:
- Set
<IsPublishable>true</IsPublishable>
, and - Set
<EnableSdkContainerSupport>true</EnableSdkContainerSupport>
- Set
-
Improved support for applications targeting
alpine
base images (meaning those publishing forlinux-musl
Runtime Identifiers). Now when you specify alinux-musl
RuntimeIdentifier, the containers tooling will automatically look for-alpine
variants of the base images. This means that you can now targetalpine
base images without needing to specify theContainerFamily
property at all. -
Projects that target Native AOT and projects that opt into Invariant Globalization have improved base image selection. Native AOT projects will use the
-aot
variants of relevant base images, and ifInvariantGlobalization
is true will use the-extra
variants of relevant base images, so that required localization dependencies are included in the image. This means that for these projects you can now target these base images without needing to specify theContainerFamily
property at all. -
Better error messages and stack traces when communicating with registries where authentication has failed, and when the container creation is canceled by users.
-
Better support for more kinds of registries - we now support registries that send CSRF tokens unconditionally, like Harbor and Harbor-derived registries.