Skip to content

Commit 12475ee

Browse files
Update devcontainer.json
1 parent 47750ac commit 12475ee

File tree

1 file changed

+24
-18
lines changed

1 file changed

+24
-18
lines changed

.devcontainer/devcontainer.json

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,30 @@
66
"image": "mcr.microsoft.com/devcontainers/dotnet:8.0",
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
9-
"features": {},
9+
"features": {},
1010

11-
// Configure tool-specific properties.
1211
"customizations": {
13-
// Configure properties specific to VS Code.
14-
"vscode": {
15-
"settings": {},
16-
"extensions": [
17-
"ms-dotnettools.csdevkit"
18-
]
19-
}
20-
}
21-
// Use 'forwardPorts' to make a list of ports inside the container available locally.
22-
// "forwardPorts": [5000, 5001],
23-
24-
// Use 'postCreateCommand' to run commands after the container is created.
25-
// "postCreateCommand": "dotnet restore",
26-
27-
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
28-
// "remoteUser": "root"
12+
"vscode": {
13+
"extensions": [
14+
"ms-dotnettools.csdevkit"
15+
]
16+
}
17+
},
18+
"forwardPorts": [
19+
5007,
20+
5101,
21+
5112
22+
],
23+
"postCreateCommand": "dotnet restore",
24+
"portsAttributes": {
25+
"5007": {
26+
"label": "Blazor Connect Four"
27+
},
28+
"5101": {
29+
"label": "RazorPagesPizza"
30+
},
31+
"5112": {
32+
"label": "Pizza API"
33+
}
34+
}
2935
}

0 commit comments

Comments
 (0)