|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
2 | 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.202.5/containers/dotnet
|
3 | 3 | {
|
4 |
| - "name": "C# (.NET)", |
5 |
| - "runArgs": [ "--init" ], |
| 4 | + "name": "GitVersion", |
6 | 5 | "build": {
|
7 | 6 | "dockerfile": "Dockerfile",
|
8 |
| - "args": { |
9 |
| - "VARIANT": "7.0", |
| 7 | + "context": "." |
| 8 | + }, |
| 9 | + "features": { |
| 10 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 11 | + "installZsh": "true", |
| 12 | + "username": "vscode", |
| 13 | + "userUid": "1000", |
| 14 | + "userGid": "1000", |
| 15 | + "upgradePackages": "true" |
| 16 | + }, |
| 17 | + "ghcr.io/devcontainers/features/git:1": { |
| 18 | + "version": "latest", |
| 19 | + "ppa": "false" |
| 20 | + }, |
| 21 | + "ghcr.io/devcontainers/features/powershell:1": { |
| 22 | + "version": "latest" |
| 23 | + }, |
| 24 | + "ghcr.io/devcontainers/features/github-cli:1": { |
| 25 | + "version": "latest" |
| 26 | + }, |
| 27 | + "ghcr.io/devcontainers/features/docker-in-docker:2": { |
| 28 | + "version": "latest" |
10 | 29 | }
|
11 | 30 | },
|
12 |
| - |
13 |
| - // Set *default* container specific settings.json values on container create. |
14 |
| - "settings": { |
15 |
| - "editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace", |
16 |
| - "editor.rulers": [ 90 ], |
17 |
| - "cSpell.words": [ |
18 |
| - "commiting", |
19 |
| - "gittools", |
20 |
| - "gitversion" |
21 |
| - ], |
| 31 | + "customizations": { |
| 32 | + "vscode": { |
| 33 | + "settings": { |
| 34 | + "editor.fontFamily": "'Cascadia Code', Consolas, 'Courier New', monospace", |
| 35 | + "editor.rulers": [ 90 ], |
| 36 | + "cSpell.words": [ |
| 37 | + "commiting", |
| 38 | + "gittools", |
| 39 | + "gitversion" |
| 40 | + ] |
| 41 | + }, |
| 42 | + // Add the IDs of extensions you want installed when the container is created. |
| 43 | + "extensions": [ |
| 44 | + "ms-dotnettools.csharp", |
| 45 | + "EditorConfig.EditorConfig", |
| 46 | + "streetsidesoftware.code-spell-checker" |
| 47 | + ] |
| 48 | + } |
22 | 49 | },
|
23 | 50 |
|
24 |
| - // Add the IDs of extensions you want installed when the container is created. |
25 |
| - "extensions": [ |
26 |
| - "ms-dotnettools.csharp", |
27 |
| - "EditorConfig.EditorConfig", |
28 |
| - "streetsidesoftware.code-spell-checker" |
29 |
| - ], |
30 |
| - |
31 | 51 | "postCreateCommand": "dotnet restore src; dotnet build build",
|
32 | 52 |
|
33 | 53 | // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
34 |
| - "remoteUser": "vscode", |
35 |
| - "features": { |
36 |
| - "docker-in-docker": "latest", |
37 |
| - "git": "latest", |
38 |
| - "github-cli": "latest", |
39 |
| - "sshd": "latest", |
40 |
| - "powershell": "latest" |
41 |
| - } |
| 54 | + "remoteUser": "vscode" |
42 | 55 | }
|
0 commit comments