Skip to content

Commit 55496e3

Browse files
xavierjohncommonsensesoftware
authored andcommitted
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
1 parent 08b1377 commit 55496e3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/dotnet/.devcontainer/base.Dockerfile
22

3-
# [Choice] .NET version: 7.0, 6.0, 5.0
4-
ARG VARIANT="8.0"
3+
# [Choice] .NET version: use "latest" or a specific version like "10.0"
4+
ARG VARIANT="10.0"
55
FROM mcr.microsoft.com/vscode/devcontainers/dotnet

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout Repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Initialize CodeQL
2525
uses: github/codeql-action/init@v4
@@ -28,7 +28,7 @@ jobs:
2828
languages: csharp
2929

3030
- name: Setup .NET
31-
uses: actions/setup-dotnet@v3
31+
uses: actions/setup-dotnet@v4
3232
id: installdotnet
3333
with:
3434
dotnet-version: 10.0.x

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
"dotnet-test-explorer.testProjectPath": "**/*Tests.csproj",
2828
"editor.formatOnType": true,
2929
"omnisharp.enableRoslynAnalyzers": true,
30-
"omnisharp.organizeImportsOnFormat": true,
3130
"omnisharp.useModernNet": true,
3231
"omnisharp.enableMsBuildLoadProjectsOnDemand": true,
3332
"omnisharp.enableEditorConfigSupport": true,
34-
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true
33+
"dotnet.completion.showCompletionItemsFromUnimportedNamespaces": true,
34+
"dotnet.formatting.organizeImportsOnFormat": true
3535
}

0 commit comments

Comments
 (0)