From d3d0cf3bafbfea4c3ea7370f139d54046639ace8 Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 23 Jul 2025 15:38:18 -0700 Subject: [PATCH 1/2] Update containers for preview 7 --- release-notes/10.0/preview/preview7/containers.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/release-notes/10.0/preview/preview7/containers.md b/release-notes/10.0/preview/preview7/containers.md index 235a667fa7..0c26b8ca67 100644 --- a/release-notes/10.0/preview/preview7/containers.md +++ b/release-notes/10.0/preview/preview7/containers.md @@ -11,3 +11,5 @@ Containers updates in .NET 10: ## Feature Something about the feature + +Something about the feature From be18b4890a4f0938045ee54ec8268128156064e6 Mon Sep 17 00:00:00 2001 From: Logan Bussell Date: Mon, 11 Aug 2025 15:09:05 -0700 Subject: [PATCH 2/2] Add dnx feature notes --- .../10.0/preview/preview7/containers.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/release-notes/10.0/preview/preview7/containers.md b/release-notes/10.0/preview/preview7/containers.md index 0c26b8ca67..6be4a496d7 100644 --- a/release-notes/10.0/preview/preview7/containers.md +++ b/release-notes/10.0/preview/preview7/containers.md @@ -2,14 +2,25 @@ Here's a summary of what's new in Containers in this preview release: -- [Feature](#feature) +- [`dnx` is now on the `PATH` in SDK images](#dnx-is-now-on-the-path-in-sdk-images) Containers updates in .NET 10: - [What's new in .NET 10](https://learn.microsoft.com/dotnet/core/whats-new/dotnet-10/overview) documentation -## Feature +## `dnx` is now on the `PATH` in SDK images -Something about the feature +`dnx` is now available directly from .NET 10 SDK container images. See [One-shot tool execution](../preview6/sdk.md#one-shot-tool-execution) for more details about `dnx`. -Something about the feature +To run a .NET tool using `dnx` in your Dockerfile build, you can use the following syntax: + +```Dockerfile +FROM mcr.microsoft.com/dotnet/sdk:10.0-preview +RUN dnx --yes [...] +``` + +To use `dnx` from the .NET SDK image directly from the command line, you can use the following Docker command: + +```console +docker run --rm mcr.microsoft.com/dotnet/sdk:10.0-preview dnx --yes [...] +```