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 - } -}