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