From 61aa659b55e17d3c89d38ba3acfac165da9a0535 Mon Sep 17 00:00:00 2001 From: Joes Date: Sun, 1 Nov 2026 16:12:22 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=20global.json,CI=20?= =?UTF-8?q?=E6=94=B9=E7=94=A8=2011.0.x=20=E9=A2=84=E8=A7=88=E9=80=9A?= =?UTF-8?q?=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与 VelaShell 的做法一致(joesdu/VelaShell#625):不再钉 SDK 版本,setup-dotnet 装 11.0.x 的 preview 通道, 之后打印 dotnet --info,把 runner 上实际用到的 SDK 版本记进日志。 解决方案文件去掉 global.json 条目。 --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/release.yml | 7 ++++++- VelaShell.Plugin.Cli.slnx | 1 - global.json | 7 ------- 4 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 global.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 486a8be..e6b2cad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,12 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-dotnet@v6 with: - global-json-file: global.json + dotnet-quality: preview + dotnet-version: | + 11.0.x + # 不钉 SDK(仓库没有 global.json),用 runner 上装到的最新 11.0 预览版;把实际版本记进日志备查。 + - name: Show .NET SDK + run: dotnet --info # 复用仓库当前的默认版本:这条路径不推送,不需要编一个 CI 专属版本号。 - name: Resolve version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d75858..a6965e1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,7 +75,12 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-dotnet@v6 with: - global-json-file: global.json + dotnet-quality: preview + dotnet-version: | + 11.0.x + # 不钉 SDK(仓库没有 global.json),用 runner 上装到的最新 11.0 预览版;把实际版本记进日志备查。 + - name: Show .NET SDK + run: dotnet --info - name: Resolve version id: version diff --git a/VelaShell.Plugin.Cli.slnx b/VelaShell.Plugin.Cli.slnx index 8eab619..02e8fc5 100644 --- a/VelaShell.Plugin.Cli.slnx +++ b/VelaShell.Plugin.Cli.slnx @@ -9,7 +9,6 @@ - diff --git a/global.json b/global.json deleted file mode 100644 index 7e7e286..0000000 --- a/global.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "sdk": { - "version": "11.0.100-rc.1.26425.128", - "rollForward": "latestFeature", - "allowPrerelease": true - } -}