Skip to content

Commit 0ffa846

Browse files
Adds support for .NET 8.0 (#852)
1 parent 5b80333 commit 0ffa846

File tree

3 files changed

+28
-4
lines changed

3 files changed

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

src/dotnet/README.md

Lines changed: 4 additions & 2 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* | 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)) |
12+
| *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)) |
1313
| *Published image architecture(s)* | x86-64, arm64/aarch64 for `bookworm`, `bullseye`, `jammy` variants |
1414
| *Container host OS support* | Linux, macOS, Windows |
1515
| *Container OS* | Ubuntu (`-focal`, `-jammy`), Debian (`-bullseye`, `-bookworm`) |
@@ -22,8 +22,10 @@ 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:6.0` (or `6.0-bookworm`, `6.0-bullseye`, `6.0-jammy`, `6.0-focal` to pin to an OS version)
25+
- `mcr.microsoft.com/devcontainers/dotnet:8.0` (or `8.0-bookworm`, `8.0-bullseye`, `8.0-jammy` to pin to an OS version)
2626
- `mcr.microsoft.com/devcontainers/dotnet:7.0` (or `7.0-bookworm`, `7.0-bullseye`, `7.0-jammy` to pin to an OS version)
27+
- `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)
28+
2729

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

src/dotnet/manifest.json

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"version": "1.0.1",
33
"variants": [
4+
"8.0-bookworm-slim",
5+
"8.0-bullseye-slim",
6+
"8.0-jammy",
47
"7.0-bookworm-slim",
58
"7.0-bullseye-slim",
69
"7.0-jammy",
@@ -10,12 +13,24 @@
1013
"6.0-focal"
1114
],
1215
"build": {
13-
"latest": "7.0-bullseye-slim",
16+
"latest": "8.0-bullseye-slim",
1417
"rootDistro": "debian",
1518
"tags": [
1619
"dotnet:${VERSION}-${VARIANT}"
1720
],
1821
"architectures": {
22+
"8.0-bookworm-slim": [
23+
"linux/amd64",
24+
"linux/arm64"
25+
],
26+
"8.0-bullseye-slim": [
27+
"linux/amd64",
28+
"linux/arm64"
29+
],
30+
"8.0-jammy": [
31+
"linux/amd64",
32+
"linux/arm64"
33+
],
1934
"7.0-bookworm-slim": [
2035
"linux/amd64",
2136
"linux/arm64"
@@ -45,6 +60,13 @@
4560
]
4661
},
4762
"variantTags": {
63+
"8.0-bookworm-slim": [
64+
"dotnet:${VERSION}-8.0",
65+
"dotnet:${VERSION}-8.0-bookworm"
66+
],
67+
"8.0-bullseye-slim": [
68+
"dotnet:${VERSION}-8.0-bullseye"
69+
],
4870
"7.0-bookworm-slim": [
4971
"dotnet:${VERSION}-7.0",
5072
"dotnet:${VERSION}-7.0-bookworm"

0 commit comments

Comments
 (0)