Skip to content

Commit 624dc7e

Browse files
Support .NET 9.0 (devcontainers#1185)
1 parent f56e913 commit 624dc7e

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

src/dotnet/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG VARIANT=8.0-bookworm-slim
1+
ARG VARIANT=9.0-bookworm-slim
22
FROM mcr.microsoft.com/dotnet/sdk:${VARIANT}
33
ENV PATH $PATH:/home/vscode/.dotnet:/home/vscode/.dotnet/tools
44

src/dotnet/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| *Categories* | Core, Languages |
1010
| *Image type* | Dockerfile |
1111
| *Published images* | mcr.microsoft.com/devcontainers/dotnet |
12-
| *Available image variants* | 8.0 /8.0-bookworm, 8.0-noble, 8.0-jammy, 6.0 /6.0-bookworm, 6.0-bullseye, 6.0-jammy, 6.0-focal ([full list](https://mcr.microsoft.com/v2/devcontainers/dotnet/tags/list)) |
12+
| *Available image variants* | 9.0 /9.0-bookworm, 8.0 /8.0-bookworm, 9.0-jammy, 8.0-jammy, 8.0-noble, 6.0 /6.0-bookworm, 6.0-bullseye, 6.0-jammy, 6.0-focal ([full list](https://mcr.microsoft.com/v2/devcontainers/dotnet/tags/list)) |
1313
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, `bullseye`, `noble`, `jammy` variants |
1414
| *Container host OS support* | Linux, macOS, Windows |
1515
| *Container OS* | Ubuntu (`-focal`, `-jammy`, `-noble`), Debian (`-bullseye`, `-bookworm`) |
@@ -22,6 +22,7 @@ See **[history](history)** for information on the contents of published images.
2222
You can directly reference pre-built versions of `Dockerfile` by using the `image` property in `.devcontainer/devcontainer.json` or updating the `FROM` statement in your own `Dockerfile` to one of the following. An example `Dockerfile` is included in this repository.
2323

2424
- `mcr.microsoft.com/devcontainers/dotnet` (latest)
25+
- `mcr.microsoft.com/devcontainers/dotnet:9.0` (or `9.0-bookworm`, `9.0-noble` to pin to an OS version)
2526
- `mcr.microsoft.com/devcontainers/dotnet:8.0` (or `8.0-bookworm`, `8.0-noble`, `8.0-jammy` to pin to an OS version)
2627
- `mcr.microsoft.com/devcontainers/dotnet:6.0` (or `6.0-bookworm`, `6.0-bullseye`, `6.0-jammy`, `6.0-focal` to pin to an OS version)
2728

@@ -30,9 +31,9 @@ Refer to [this guide](https://containers.dev/guide/dockerfile) for more details.
3031

3132
You can decide how often you want updates by referencing a [semantic version](https://semver.org/) of each image. For example:
3233

33-
- `mcr.microsoft.com/devcontainers/dotnet:1-8.0`
34-
- `mcr.microsoft.com/devcontainers/dotnet:1.0-8.0`
35-
- `mcr.microsoft.com/devcontainers/dotnet:1.0.0-8.0`
34+
- `mcr.microsoft.com/devcontainers/dotnet:1-9.0`
35+
- `mcr.microsoft.com/devcontainers/dotnet:1.3-9.0`
36+
- `mcr.microsoft.com/devcontainers/dotnet:1.3.0-9.0`
3637

3738
See [history](history) for information on the contents of each version and [here for a complete list of available tags](https://mcr.microsoft.com/v2/devcontainers/dotnet/tags/list).
3839

src/dotnet/manifest.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"version": "1.2.1",
33
"variants": [
4+
"9.0-bookworm-slim",
5+
"9.0-noble",
46
"8.0-bookworm-slim",
57
"8.0-noble",
68
"8.0-jammy",
@@ -10,12 +12,20 @@
1012
"6.0-focal"
1113
],
1214
"build": {
13-
"latest": "8.0-bookworm-slim",
15+
"latest": "9.0-bookworm-slim",
1416
"rootDistro": "debian",
1517
"tags": [
1618
"dotnet:${VERSION}-${VARIANT}"
1719
],
1820
"architectures": {
21+
"9.0-bookworm-slim": [
22+
"linux/amd64",
23+
"linux/arm64"
24+
],
25+
"9.0-noble": [
26+
"linux/amd64",
27+
"linux/arm64"
28+
],
1929
"8.0-bookworm-slim": [
2030
"linux/amd64",
2131
"linux/arm64"

0 commit comments

Comments
 (0)