ci: 限定.Net SDK为10.0.203

This commit is contained in:
status102
2026-05-05 04:03:08 +08:00
parent 9a2d43ca7e
commit 3c20e21182
2 changed files with 12 additions and 2 deletions

View File

@@ -150,10 +150,15 @@ jobs:
cp MaaFramework-temp/bin/*Win32ControlUnit* install/
cp MaaFramework-temp/bin/*AdbControlUnit* install/
- name: Generate global.json
shell: bash
run: |
echo '{"sdk":{"version":"10.0.203","rollForward":"disable"}}' > global.json
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.202'
global-json-file: global.json
- name: Cache .nuke/temp, ~/.nuget/packages
id: cache-nuget

View File

@@ -206,10 +206,15 @@ jobs:
run: |
cp MaaFramework-temp/bin/*Win32ControlUnit* install/
- name: Generate global.json
shell: bash
run: |
echo '{"sdk":{"version":"10.0.203","rollForward":"disable"}}' > global.json
- name: Setup .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.202'
global-json-file: global.json
- name: Cache .nuke/temp, ~/.nuget/packages
id: cache-nuget