From f8582b90077c8fb64e0f8f3d442d7b8176e28605 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sat, 21 Feb 2026 21:27:52 +0800 Subject: [PATCH] Add workaround to install .NET 10 SDK in AppVeyor build Added a script step to download and install .NET SDK 10.0.100 using dotnet-install.ps1, addressing missing SDK in VS2022 image. References AppVeyor issue regarding SDK availability. --- appveyor.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 03542e8d2..8dc13bf7c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,6 +14,12 @@ init: - sc config WSearch start= auto # Starts Windows Search service- Needed for running ExplorerTest - net start WSearch +# As a workaround for net10 SDK not being available in Visual Studio 2022 image: https://github.com/appveyor/ci/issues/3984 +install: +- ps: | + Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1" + & $env:temp\dotnet-install.ps1 -Architecture x64 -Version '10.0.100' -InstallDir "$env:ProgramFiles\dotnet" + cache: - '%USERPROFILE%\.nuget\packages -> **.sln, **.csproj' # preserve nuget folder (packages) unless the solution or projects change