Skip to content

Commit 2ee4607

Browse files
authored
Update devcontainer Dockerfile (dotnet#52681)
* Update devcontainer Dockerfile add missing tag * Update Dockerfile update to latest repo * Update devcontainer.json update csharp extension to new csharp dev kit update tag list link * remove VARIANT argument * Update Dockerfile revert image repo back
1 parent e63a887 commit 2ee4607

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.devcontainer/Dockerfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/dotnet/.devcontainer/base.Dockerfile
22

3-
# [Choice] .NET version: 5.0, 3.1, 2.1
4-
ARG VARIANT="5.0"
5-
FROM mcr.microsoft.com/vscode/devcontainers/dotnet
3+
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:latest
64

75
# [Option] Install Node.js
86
ARG INSTALL_NODE="true"

.devcontainer/devcontainer.json

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,14 @@
55
"build": {
66
"dockerfile": "Dockerfile",
77
"args": {
8-
// The VARIANT here must align with a dotnet container image that
9-
// is publicly available on https://mcr.microsoft.com/v2/vscode/devcontainers/dotnet/tags/list.
10-
// We'll default to `latest` as the default. Generally, the .NET version that is baked
11-
// into the image by default doesn't matter since we end up installing our own
12-
// local version and using that by default in the container environment.
13-
"VARIANT": "latest",
148
// Options
159
"INSTALL_NODE": "true",
1610
"NODE_VERSION": "lts/*"
1711
}
1812
},
1913
// Add the IDs of extensions you want installed when the container is created.
2014
"extensions": [
21-
"ms-dotnettools.csharp",
15+
"ms-dotnettools.csdevkit",
2216
"EditorConfig.EditorConfig",
2317
"k--kato.docomment",
2418
"dbaeumer.vscode-eslint"

0 commit comments

Comments
 (0)