Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support .NET 9.0 #1185

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading