From edca0ecf0c081b80aec1a135d4fffddcf28fe449 Mon Sep 17 00:00:00 2001 From: Chet Husk Date: Mon, 3 Jun 2024 09:24:06 -0500 Subject: [PATCH] update devcontainer with modern usages --- .devcontainer/devcontainer.json | 38 +++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0a40702f4..492d72b9a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,15 +1,25 @@ { - "name": "F# (.NET 7.0)", - "dockerFile": "Dockerfile", - "settings": { - "terminal.integrated.shell.linux": "/bin/bash", - "FSharp.useSdkScripts":true, - "FSharp.workspacePath": "FsAutoComplete.sln" - }, - "onCreateCommand": "dotnet tool restore && dotnet restore", - "extensions": [ - "Ionide.Ionide-fsharp", - "Ionide.Ionide-Paket", - "ms-vscode.csharp" - ] -} + "name": "F#", + "image": "mcr.microsoft.com/dotnet/sdk:8.0", + "features": { + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers/features/dotnet:2": { + "version": "8.0", + "dotnetRuntimeVersions": "6.0, 7.0", + "aspNetCoreRuntimeVersions": "6.0, 7.0" + } + }, + "customizations": { + "vscode": { + "settings": { + "FSharp.workspacePath": "FsAutoComplete.sln" + }, + "extensions": [ + "Ionide.Ionide-fsharp", + "Ionide.Ionide-Paket", + "ms-vscode.csharp" + ] + } + }, + "onCreateCommand": "dotnet tool restore && dotnet restore" +} \ No newline at end of file