From 3ee4ecf632c582f40a98dec49b9a0bb1c0d0b0a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 20 Nov 2025 01:47:11 +0000 Subject: [PATCH] Lock .NET SDK to 8.0.416 and fix SelfContained parameter Co-authored-by: 2dust <31833384+2dust@users.noreply.github.com> --- .github/workflows/build-windows.yml | 23 ++++++++++++++++------- global.json | 6 ++++++ 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 global.json diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 288f776c..5eb21225 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -32,17 +32,26 @@ jobs: - name: Setup uses: actions/setup-dotnet@v5.0.0 with: - dotnet-version: '8.0.x' + dotnet-version: '8.0.416' + + - name: Verify SDK version + run: | + echo "=== dotnet --version ===" + dotnet --version + echo "=== dotnet --list-sdks ===" + dotnet --list-sdks + echo "=== dotnet --list-runtimes ===" + dotnet --list-runtimes - name: Build run: | cd v2rayN - dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPath64 - dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-arm64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPathArm64 - dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 --self-contained=true -p:EnableWindowsTargeting=true -o $OutputPath64Sc - dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPath64 - dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-arm64 --self-contained=false -p:EnableWindowsTargeting=true -o $OutputPathArm64 - dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 --self-contained=true -p:EnableWindowsTargeting=true -p:PublishTrimmed=true -o $OutputPath64Sc + dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPath64 + dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-arm64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPathArm64 + dotnet publish ./v2rayN/v2rayN.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=true -o $OutputPath64Sc + dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPath64 + dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-arm64 -p:EnableWindowsTargeting=true -p:SelfContained=false -o $OutputPathArm64 + dotnet publish ./AmazTool/AmazTool.csproj -c Release -r win-x64 -p:EnableWindowsTargeting=true -p:SelfContained=true -p:PublishTrimmed=true -o $OutputPath64Sc - name: Upload build artifacts diff --git a/global.json b/global.json new file mode 100644 index 00000000..ce0f627c --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "8.0.416", + "rollForward": "disable" + } +}