From 12475eebe44a5e3aa9dfac889157a2a676e5007c Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Wed, 17 Jan 2024 13:53:20 -0800 Subject: [PATCH] Update devcontainer.json --- .devcontainer/devcontainer.json | 42 +++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 323bc39..8cf3974 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,24 +6,30 @@ "image": "mcr.microsoft.com/devcontainers/dotnet:8.0", // Features to add to the dev container. More info: https://containers.dev/features. - "features": {}, + "features": {}, - // Configure tool-specific properties. "customizations": { - // Configure properties specific to VS Code. - "vscode": { - "settings": {}, - "extensions": [ - "ms-dotnettools.csdevkit" - ] - } - } - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [5000, 5001], - - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "dotnet restore", - - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" + "vscode": { + "extensions": [ + "ms-dotnettools.csdevkit" + ] + } + }, + "forwardPorts": [ + 5007, + 5101, + 5112 + ], + "postCreateCommand": "dotnet restore", + "portsAttributes": { + "5007": { + "label": "Blazor Connect Four" + }, + "5101": { + "label": "RazorPagesPizza" + }, + "5112": { + "label": "Pizza API" + } + } }