Skip to content

Commit 55caf56

Browse files
authored
add devcontainer configuration for .NET development Aspire, azd, git, github (#558)
1 parent fcb5b77 commit 55caf56

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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/docker-in-docker:2": {},
9+
"ghcr.io/devcontainers/features/dotnet:2": {},
10+
"ghcr.io/devcontainers/features/github-cli:1": {},
11+
"ghcr.io/azure/azure-dev/azd:0": {},
12+
"ghcr.io/dotnet/aspire-devcontainer-feature/dotnetaspire:1": {}
13+
}
14+
15+
// Features to add to the dev container. More info: https://containers.dev/features.
16+
// "features": {},
17+
18+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
19+
// "forwardPorts": [5000, 5001],
20+
// "portsAttributes": {
21+
// "5001": {
22+
// "protocol": "https"
23+
// }
24+
// }
25+
26+
// Use 'postCreateCommand' to run commands after the container is created.
27+
// "postCreateCommand": "dotnet restore",
28+
29+
// Configure tool-specific properties.
30+
// "customizations": {},
31+
32+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
33+
// "remoteUser": "root"
34+
}

0 commit comments

Comments
 (0)