1
+ {
2
+ "name" : " DevContainer for .NET" ,
3
+ "build" : {
4
+ "dockerfile" : " ./Dockerfile" ,
5
+ "context" : " ." ,
6
+ "args" : {
7
+ "VARIANT" : " 8.0-noble"
8
+ }
9
+ },
10
+
11
+ "features" : {
12
+ // Uncomment the below to install .NET SDK
13
+ "ghcr.io/devcontainers/features/dotnet:latest" : {
14
+ "version" : " 6.0" ,
15
+ "additionalVersions" : " 7.0"
16
+ },
17
+
18
+ // Uncomment the below to install Azure CLI
19
+ "ghcr.io/devcontainers/features/azure-cli:latest" : {
20
+ "version" : " latest" ,
21
+ "extensions" : " account,alias,containerapp,deploy-to-azure,subscription"
22
+ },
23
+
24
+ // Uncomment the below to install GitHub CLI
25
+ "ghcr.io/devcontainers/features/github-cli:latest" : {
26
+ "version" : " latest"
27
+ },
28
+
29
+ // Uncomment the below to install node.js
30
+ "ghcr.io/devcontainers/features/node:latest" : {
31
+ "version" : " lts" ,
32
+ "nodeGypDependencies" : true ,
33
+ "nvmInstallPath" : " /usr/local/share/nvm"
34
+ },
35
+
36
+ // Uncomment the below to install Docker-in-Docker
37
+ "ghcr.io/devcontainers/features/docker-in-docker:latest" : {},
38
+
39
+ // Uncomment the below to install Kubernetes CLI
40
+ "ghcr.io/devcontainers/features/kubectl-helm-minikube:latest" : {},
41
+
42
+ // Install common utilities
43
+ "ghcr.io/devcontainers/features/common-utils:latest" : {
44
+ "installZsh" : true ,
45
+ "configureZshAsDefaultShell" : true ,
46
+ "installOhMyZsh" : true ,
47
+ "installOhMyZshConfig" : true ,
48
+ "upgradePackages" : true ,
49
+ "username" : " vscode" ,
50
+ "uid" : " 1000" ,
51
+ "gid" : " 1000"
52
+ }
53
+ },
54
+
55
+ "overrideFeatureInstallOrder" : [
56
+ " ghcr.io/devcontainers/features/common-utils"
57
+ ],
58
+
59
+ // Configure tool-specific properties.
60
+ "customizations" : {
61
+ // Configure properties specific to VS Code.
62
+ "vscode" : {
63
+ // Add the IDs of extensions you want installed when the container is created.
64
+ "extensions" : [
65
+ // Recommended extensions - GitHub
66
+ " GitHub.vscode-github-actions" ,
67
+ " GitHub.vscode-pull-request-github" ,
68
+
69
+ // Recommended extensions - Azure
70
+ " ms-azuretools.vscode-bicep" ,
71
+
72
+ // Recommended extensions - Collaboration
73
+ " EditorConfig.EditorConfig" ,
74
+ " streetsidesoftware.code-spell-checker" ,
75
+
76
+ // Recommended extensions - Markdown
77
+ " bierner.github-markdown-preview" ,
78
+ " DavidAnson.vscode-markdownlint" ,
79
+ " docsmsft.docs-linting" ,
80
+ " johnpapa.read-time" ,
81
+ " yzhang.markdown-all-in-one" ,
82
+
83
+ // Required extensions
84
+ " GitHub.copilot" ,
85
+ " GitHub.copilot-chat" ,
86
+ " ms-dotnettools.csdevkit" ,
87
+ " ms-vscode.PowerShell" ,
88
+ " ms-vscode.vscode-node-azure-pack" ,
89
+ " VisualStudioExptTeam.vscodeintellicode"
90
+ ],
91
+ "settings" : {
92
+ // Uncomment if you want to disable the minimap view
93
+ "editor.minimap.enabled" : false ,
94
+
95
+ // Uncomment if you want to change the default font family to D2Coding
96
+ "editor.fontFamily" : " D2Coding, Consolas, 'Courier New', monospace" ,
97
+
98
+ // Uncomment if you want to use D2CodingLigature Nerd Font as the default terminal font
99
+ "terminal.integrated.fontFamily" : " D2CodingLigature Nerd Font" ,
100
+
101
+ // Recommended settings for the explorer pane
102
+ "explorer.sortOrder" : " type" ,
103
+ "explorer.fileNesting.enabled" : true ,
104
+ "explorer.fileNesting.patterns" : {
105
+ "*.bicep" : " ${capture}.json, ${capture}.parameters.json" ,
106
+ "*.razor" : " ${capture}.razor.css, ${capture}.razor.cs" ,
107
+ "*.js" : " ${capture}.js.map"
108
+ }
109
+ }
110
+ }
111
+ },
112
+
113
+ // Uncomment if you want to use bash in 'onCreateCommand' after the container is created
114
+ "onCreateCommand" : " /bin/bash ./.devcontainer/on-create.sh > ~/on-create.log" ,
115
+
116
+ "remoteUser" : " vscode"
117
+ }
0 commit comments