Skip to content

Commit fb9f8b5

Browse files
author
RandomCrocodile
committed
fix(ci): update CodeQL to windows-2025 for MSBuild 18 / .NET 10 support
CodeQL was still on windows-2022 (MSBuild 17) which can't resolve .NET 10 SDK from global.json. Also removed obsolete .NET 4.6.1 targeting pack install (net48 doesn't need it) and bumped checkout to v5.
1 parent 53b8f24 commit fb9f8b5

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ permissions:
1717
jobs:
1818
analyze:
1919
name: Analyze
20-
runs-on: windows-2022
20+
runs-on: windows-2025
2121

2222
strategy:
2323
fail-fast: false
2424

2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828
with:
2929
fetch-depth: 0
3030
submodules: recursive
@@ -37,14 +37,6 @@ jobs:
3737
- name: Setup MSBuild
3838
uses: microsoft/setup-msbuild@v2
3939

40-
- name: Install .NET 4.6.1 targeting pack
41-
shell: pwsh
42-
run: |
43-
$url = 'https://download.microsoft.com/download/F/1/D/F1DEB8DB-D277-4EF9-9F48-3A65D4D8F965/NDP461-DevPack-KB3105179-ENU.exe'
44-
$installer = "$env:TEMP\ndp461-devpack.exe"
45-
Invoke-WebRequest -Uri $url -OutFile $installer -UseBasicParsing
46-
Start-Process -FilePath $installer -ArgumentList '/quiet','/norestart' -Wait
47-
4840
- name: Restore
4941
run: msbuild Confuser2.sln -t:Restore -verbosity:minimal
5042

0 commit comments

Comments
 (0)