Microsoft.NET.Build.Containers 10.0.100-preview.1.25120.13

.NET SDK Containers

This package lets you build container images from your projects with a single command.

Getting Started

To build a container from the SDK, add this package and run the publish command, specifying the DefaultContainer PublishProfile. You can learn more about Publish Profiles in the documentation.

>dotnet add package Microsoft.NET.Build.Containers
>dotnet publish --os linux --arch x64 -p:PublishProfile=DefaultContainer
...
Pushed container '<your app name>:<your app version>' to registry 'docker://'
...

Out of the box, this package will infer a number of properties about the generated container image, including which base image to use, which version of that image to use, and where to push the generated image. You have control over all of these properties, however. You can read more about these customizations here.

Note: This package only supports Web projects (those that use the Microsoft.NET.Sdk.Web SDK) in this version.

No packages depend on Microsoft.NET.Build.Containers.

# Microsoft.NET.Build.Containers 8.0.300 This version brings the following new features and enhancements: * The SDK will generate additional container metadata labels now. * The `org.opencontainers.image.base.digest` label will be added to uniquely identify the image used as a base for the application container. * The `net.dot.runtime.majorminor` label will be added to identify the major and minor version of the .NET Runtime that the application runs against. * The `net.dot.sdk.version` label will be added to identify the .NET SDK version used to build the application container. * The SDK can use and produce OCI base image layers, not just Docker base image layers. This will happen automatically based on the kind of base image digest you use. * The SDK will automatically use the `-extra` variant of base images when the application needs globalization/ICU support. So if you set `<ContainerFamily>jammy-chiseled</ContainerFamily>` and `<InvariantGlobalization>false</InvariantGlobalization>` in your project file, the SDK will behave as if you set `<ContainerFamily>jammy-chiseled-extra</ContainerFamily>` - this ensures that your application has the required ICU/Globalization support libraries. * The SDK will use the runtime-deps base images for Trimmed applications, in addition to AOT applications.

.NET 10.0

  • No dependencies.

Version Downloads Last updated
10.0.100-preview.5.25277.114 0 06/06/2025
10.0.100-preview.4.25258.110 0 05/12/2025
10.0.100-preview.3.25201.16 0 04/10/2025
10.0.100-preview.2.25164.34 0 03/18/2025
10.0.100-preview.1.25120.13 1 06/05/2025
9.0.300 1 05/31/2025
9.0.204 1 05/29/2025
9.0.203 1 05/29/2025
9.0.202 1 05/29/2025
9.0.201 1 05/29/2025
9.0.200 1 05/29/2025
9.0.200-preview.0.24575.35 1 01/21/2025
9.0.106 1 05/29/2025
9.0.105 1 05/29/2025
9.0.104 1 05/29/2025
9.0.103 1 05/29/2025
9.0.102 2 01/21/2025
9.0.101 2 01/21/2025
9.0.100 2 01/21/2025
9.0.100-rc.2.24474.11 2 01/21/2025
9.0.100-rc.1.24452.12 2 01/21/2025
9.0.100-preview.7.24407.12 1 01/21/2025
9.0.100-preview.6.24328.19 1 01/21/2025
9.0.100-preview.5.24307.3 1 01/21/2025
9.0.100-preview.4.24267.43 1 01/21/2025
9.0.100-preview.3.24204.14 3 04/20/2024
9.0.100-preview.2.24157.36 3 04/20/2024
9.0.100-preview.1.24101.1 4 04/19/2024
8.0.410 2 05/29/2025
8.0.409 1 05/29/2025
8.0.408 1 05/29/2025
8.0.407 1 05/29/2025
8.0.406 1 05/29/2025
8.0.405 2 01/21/2025
8.0.404 2 01/21/2025
8.0.403 2 01/21/2025
8.0.402 2 01/21/2025
8.0.401 2 01/21/2025
8.0.400 2 01/21/2025
8.0.313 1 05/29/2025
8.0.312 1 05/29/2025
8.0.311 1 05/29/2025
8.0.310 1 05/29/2025
8.0.309 1 05/29/2025
8.0.308 3 01/21/2025
8.0.307 2 01/21/2025
8.0.306 2 01/21/2025
8.0.304 2 01/21/2025
8.0.303 3 01/21/2025
8.0.302 2 01/21/2025
8.0.301 2 01/21/2025
8.0.300 3 01/21/2025
8.0.206 2 01/21/2025
8.0.205 2 01/21/2025
8.0.204 4 04/19/2024
8.0.202 3 04/20/2024
8.0.200 4 04/18/2024
8.0.116 1 05/29/2025
8.0.115 1 05/29/2025
8.0.114 1 05/29/2025
8.0.113 2 05/29/2025
8.0.112 2 01/21/2025
8.0.111 2 01/21/2025
8.0.110 2 01/21/2025
8.0.108 2 01/21/2025
8.0.107 2 01/21/2025
8.0.106 2 01/21/2025
8.0.105 2 01/21/2025
8.0.104 5 04/18/2024
8.0.103 4 04/20/2024
8.0.102 4 04/20/2024
8.0.101 4 04/20/2024
8.0.100 4 04/18/2024
8.0.100-rc.2.23480.5 3 04/19/2024
8.0.100-rc.1.23462.41 4 04/19/2024
8.0.100-rc.1.23455.21 4 04/19/2024
8.0.100-preview.7.23376.5 3 04/18/2024
8.0.100-preview.6.23330.7 3 04/20/2024
8.0.100-preview.5.23303.1 3 04/18/2024
8.0.100-preview.4.23260.11 3 04/18/2024
7.0.410 2 01/21/2025
7.0.409 2 01/21/2025
7.0.408 4 04/20/2024
7.0.407 4 04/19/2024
7.0.406 4 04/19/2024
7.0.405 4 04/20/2024
7.0.404 4 04/19/2024
7.0.403 4 04/20/2024
7.0.402 4 04/18/2024
7.0.401 3 04/19/2024
7.0.400 4 04/19/2024
7.0.317 2 01/21/2025
7.0.316 2 01/21/2025
7.0.315 3 04/19/2024
7.0.314 4 04/20/2024
7.0.313 5 04/19/2024
7.0.312 4 04/19/2024
7.0.311 4 04/19/2024
7.0.310 4 04/20/2024
7.0.309 4 04/18/2024
7.0.308 4 04/20/2024
7.0.307 5 04/20/2024
7.0.306 5 08/18/2023
7.0.305 4 04/19/2024
7.0.304 4 04/19/2024
7.0.302 4 04/20/2024
0.4.0 4 04/20/2024
0.3.2 4 04/19/2024
0.2.7 3 01/21/2025
0.1.8 4 04/19/2024