Update devcontainer.json

This commit is contained in:
James Montemagno 2024-01-17 13:53:20 -08:00 committed by GitHub
parent 47750ac6c3
commit 12475eebe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,24 +6,30 @@
"image": "mcr.microsoft.com/devcontainers/dotnet:8.0", "image": "mcr.microsoft.com/devcontainers/dotnet:8.0",
// Features to add to the dev container. More info: https://containers.dev/features. // Features to add to the dev container. More info: https://containers.dev/features.
"features": {}, "features": {},
// Configure tool-specific properties.
"customizations": { "customizations": {
// Configure properties specific to VS Code. "vscode": {
"vscode": { "extensions": [
"settings": {}, "ms-dotnettools.csdevkit"
"extensions": [ ]
"ms-dotnettools.csdevkit" }
] },
} "forwardPorts": [
} 5007,
// Use 'forwardPorts' to make a list of ports inside the container available locally. 5101,
// "forwardPorts": [5000, 5001], 5112
],
// Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "dotnet restore",
// "postCreateCommand": "dotnet restore", "portsAttributes": {
"5007": {
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. "label": "Blazor Connect Four"
// "remoteUser": "root" },
"5101": {
"label": "RazorPagesPizza"
},
"5112": {
"label": "Pizza API"
}
}
} }