From 6a22d460cba1cb597c002d1b7b7e440964738759 Mon Sep 17 00:00:00 2001 From: Xavier Date: Fri, 27 Feb 2026 10:15:58 -0800 Subject: [PATCH] Update Dockerfile and workflows for .NET versioning and CodeQL actions - Change .NET version in Dockerfile to 10.0 - Upgrade actions/checkout and actions/setup-dotnet to v4 in CodeQL workflow - Enable organizing imports on format in VSCode settings --- .devcontainer/Dockerfile | 4 ++-- .github/workflows/codeql-analysis.yml | 4 ++-- .vscode/settings.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e5eb2a2a..af2c322c 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,5 @@ # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/dotnet/.devcontainer/base.Dockerfile -# [Choice] .NET version: 7.0, 6.0, 5.0 -ARG VARIANT="8.0" +# [Choice] .NET version: use "latest" or a specific version like "10.0" +ARG VARIANT="10.0" FROM mcr.microsoft.com/vscode/devcontainers/dotnet \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index a20bb427..a63376fb 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL uses: github/codeql-action/init@v4 @@ -28,7 +28,7 @@ jobs: languages: csharp - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 id: installdotnet with: dotnet-version: 10.0.x diff --git a/.vscode/settings.json b/.vscode/settings.json index 86a81124..dad8c9c6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -27,9 +27,9 @@ "dotnet-test-explorer.testProjectPath": "**/*Tests.csproj", "editor.formatOnType": true, "omnisharp.enableRoslynAnalyzers": true, - "omnisharp.organizeImportsOnFormat": true, "omnisharp.useModernNet": true, "omnisharp.enableMsBuildLoadProjectsOnDemand": true, "omnisharp.enableEditorConfigSupport": true, - "dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true + "dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true, + "dotnet.formatting.organizeImportsOnFormat": true } \ No newline at end of file