Skip to content

Commit

Permalink
Support .NET 9.0 (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
samruddhikhandale authored Sep 12, 2024
1 parent f56e913 commit 624dc7e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/dotnet/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG VARIANT=8.0-bookworm-slim
ARG VARIANT=9.0-bookworm-slim
FROM mcr.microsoft.com/dotnet/sdk:${VARIANT}
ENV PATH $PATH:/home/vscode/.dotnet:/home/vscode/.dotnet/tools

Expand Down
9 changes: 5 additions & 4 deletions src/dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
| *Categories* | Core, Languages |
| *Image type* | Dockerfile |
| *Published images* | mcr.microsoft.com/devcontainers/dotnet |
| *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)) |
| *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)) |
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, `bullseye`, `noble`, `jammy` variants |
| *Container host OS support* | Linux, macOS, Windows |
| *Container OS* | Ubuntu (`-focal`, `-jammy`, `-noble`), Debian (`-bullseye`, `-bookworm`) |
Expand All @@ -22,6 +22,7 @@ See **[history](history)** for information on the contents of published images.
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.

- `mcr.microsoft.com/devcontainers/dotnet` (latest)
- `mcr.microsoft.com/devcontainers/dotnet:9.0` (or `9.0-bookworm`, `9.0-noble` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/dotnet:8.0` (or `8.0-bookworm`, `8.0-noble`, `8.0-jammy` to pin to an OS version)
- `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)

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

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

- `mcr.microsoft.com/devcontainers/dotnet:1-8.0`
- `mcr.microsoft.com/devcontainers/dotnet:1.0-8.0`
- `mcr.microsoft.com/devcontainers/dotnet:1.0.0-8.0`
- `mcr.microsoft.com/devcontainers/dotnet:1-9.0`
- `mcr.microsoft.com/devcontainers/dotnet:1.3-9.0`
- `mcr.microsoft.com/devcontainers/dotnet:1.3.0-9.0`

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).

Expand Down
12 changes: 11 additions & 1 deletion src/dotnet/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"version": "1.2.1",
"variants": [
"9.0-bookworm-slim",
"9.0-noble",
"8.0-bookworm-slim",
"8.0-noble",
"8.0-jammy",
Expand All @@ -10,12 +12,20 @@
"6.0-focal"
],
"build": {
"latest": "8.0-bookworm-slim",
"latest": "9.0-bookworm-slim",
"rootDistro": "debian",
"tags": [
"dotnet:${VERSION}-${VARIANT}"
],
"architectures": {
"9.0-bookworm-slim": [
"linux/amd64",
"linux/arm64"
],
"9.0-noble": [
"linux/amd64",
"linux/arm64"
],
"8.0-bookworm-slim": [
"linux/amd64",
"linux/arm64"
Expand Down

0 comments on commit 624dc7e

Please sign in to comment.