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

Adds support for .NET 8.0 #852

Merged
merged 1 commit into from
Nov 15, 2023
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,3 +1,3 @@
ARG VARIANT=7.0-bookworm-slim
ARG VARIANT=8.0-bookworm-slim
FROM mcr.microsoft.com/dotnet/sdk:${VARIANT}
ENV PATH $PATH:/home/vscode/.dotnet:/home/vscode/.dotnet/tools
6 changes: 4 additions & 2 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* | 6.0 /6.0-bookworm, 6.0-bullseye, 6.0-jammy, 6.0-focal, 7.0 /7.0-bookworm, 7.0-bullseye, 7.0-jammy ([full list](https://mcr.microsoft.com/v2/devcontainers/dotnet/tags/list)) |
| *Available image variants* | 8.0 /8.0-bookworm, 8.0-bullseye, 8.0-jammy, 7.0 /7.0-bookworm, 7.0-bullseye, 7.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)) |
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, `bullseye`, `jammy` variants |
| *Container host OS support* | Linux, macOS, Windows |
| *Container OS* | Ubuntu (`-focal`, `-jammy`), Debian (`-bullseye`, `-bookworm`) |
Expand All @@ -22,8 +22,10 @@ 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:6.0` (or `6.0-bookworm`, `6.0-bullseye`, `6.0-jammy`, `6.0-focal` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/dotnet:8.0` (or `8.0-bookworm`, `8.0-bullseye`, `8.0-jammy` to pin to an OS version)
- `mcr.microsoft.com/devcontainers/dotnet:7.0` (or `7.0-bookworm`, `7.0-bullseye`, `7.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)


Refer to [this guide](https://containers.dev/guide/dockerfile) for more details.

Expand Down
24 changes: 23 additions & 1 deletion src/dotnet/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"version": "1.0.1",
"variants": [
"8.0-bookworm-slim",
"8.0-bullseye-slim",
"8.0-jammy",
"7.0-bookworm-slim",
"7.0-bullseye-slim",
"7.0-jammy",
Expand All @@ -10,12 +13,24 @@
"6.0-focal"
],
"build": {
"latest": "7.0-bullseye-slim",
"latest": "8.0-bullseye-slim",
"rootDistro": "debian",
"tags": [
"dotnet:${VERSION}-${VARIANT}"
],
"architectures": {
"8.0-bookworm-slim": [
"linux/amd64",
"linux/arm64"
],
"8.0-bullseye-slim": [
"linux/amd64",
"linux/arm64"
],
"8.0-jammy": [
"linux/amd64",
"linux/arm64"
],
"7.0-bookworm-slim": [
"linux/amd64",
"linux/arm64"
Expand Down Expand Up @@ -45,6 +60,13 @@
]
},
"variantTags": {
"8.0-bookworm-slim": [
"dotnet:${VERSION}-8.0",
"dotnet:${VERSION}-8.0-bookworm"
],
"8.0-bullseye-slim": [
"dotnet:${VERSION}-8.0-bullseye"
],
"7.0-bookworm-slim": [
"dotnet:${VERSION}-7.0",
"dotnet:${VERSION}-7.0-bookworm"
Expand Down
Loading