From 4d1a1ba413c9d10ef73cdc592f35c9ea0e69209e Mon Sep 17 00:00:00 2001 From: Warren Buckley Date: Fri, 11 Nov 2022 19:01:54 +0000 Subject: [PATCH] Adds in .NET SDK using the Feature approach in devcontainer.json until NET7 image is live --- .devcontainer/devcontainer.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 4b1f593281..2819ccf8b0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -13,6 +13,14 @@ "omnisharp.enableRoslynAnalyzers": true }, + "features": { + // Workaround until the image is updated to include the latest version of .NET Core - .NET7 + // https://github.com/devcontainers/templates/issues/38#issuecomment-1310803259 + "ghcr.io/devcontainers/features/dotnet:1": { + "version": "7" + } + }, + // Add the IDs of extensions you want installed when the container is created. "extensions": [ "ms-dotnettools.csharp"