Skip to content

Commit f8209a6

Browse files
committed
Add devcontainer configuration for C# (.NET) development
1 parent f85009b commit f8209a6

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
3+
{
4+
"name": "C# (.NET)",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/dotnet:1-9.0-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/azure-cli:1": {}
9+
},
10+
11+
// Features to add to the dev container. More info: https://containers.dev/features.
12+
// "features": {},
13+
14+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
15+
// "forwardPorts": [5000, 5001],
16+
// "portsAttributes": {
17+
// "5001": {
18+
// "protocol": "https"
19+
// }
20+
// }
21+
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "dotnet restore",
24+
25+
// Configure tool-specific properties.
26+
"customizations": {
27+
"vscode": {
28+
"extensions": [
29+
"ms-dotnettools.csdevkit",
30+
"ms-dotnettools.csharp",
31+
"ms-vscode.azurecli",
32+
"ms-vscode.vscode-node-azure-pack",
33+
"github.copilot-chat",
34+
"github.copilot",
35+
"github.vscode-github-actions",
36+
"vscode-icons-team.vscode-icons"
37+
],
38+
"settings": {
39+
"workbench.iconTheme": "vscode-icons"
40+
}
41+
}
42+
}
43+
44+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
45+
// "remoteUser": "root"
46+
}

0 commit comments

Comments
 (0)