You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release-notes/10.0/preview/preview7/containers.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,25 @@
2
2
3
3
Here's a summary of what's new in Containers in this preview release:
4
4
5
-
-[Feature](#feature)
5
+
-[`dnx` is now on the `PATH` in SDK images](#dnx-is-now-on-the-path-in-sdk-images)
6
6
7
7
Containers updates in .NET 10:
8
8
9
9
-[What's new in .NET 10](https://learn.microsoft.com/dotnet/core/whats-new/dotnet-10/overview) documentation
10
10
11
-
## Feature
11
+
## `dnx` is now on the `PATH` in SDK images
12
12
13
-
Something about the feature
13
+
`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`.
14
+
15
+
To run a .NET tool using `dnx` in your Dockerfile build, you can use the following syntax:
16
+
17
+
```Dockerfile
18
+
FROM mcr.microsoft.com/dotnet/sdk:10.0-preview
19
+
RUN dnx --yes <packageId> [<commandArguments>...]
20
+
```
21
+
22
+
To use `dnx` from the .NET SDK image directly from the command line, you can use the following Docker command:
23
+
24
+
```console
25
+
docker run --rm mcr.microsoft.com/dotnet/sdk:10.0-preview dnx --yes <packageId> [<commandArguments>...]
0 commit comments