Containers in .NET 10 Preview 7 - Release Notes
August 12, 2025 ยท View on GitHub
Here's a summary of what's new in Containers in this preview release:
Containers updates in .NET 10:
- What's new in .NET 10 documentation
dnx is now on the PATH in SDK images
dnx is now available directly from .NET 10 SDK container images. See One-shot tool execution for more details about dnx.
To run a .NET tool using dnx in your Dockerfile build, you can use the following syntax:
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview
RUN dnx --yes <packageId> [<commandArguments>...]
To use dnx from the .NET SDK image directly from the command line, you can use the following Docker command:
docker run --rm mcr.microsoft.com/dotnet/sdk:10.0-preview dnx --yes <packageId> [<commandArguments>...]