diff --git a/.github/workflows/build-windows-x86.yml b/.github/workflows/build-windows-x86.yml
index d2958c08..9e9affd8 100644
--- a/.github/workflows/build-windows-x86.yml
+++ b/.github/workflows/build-windows-x86.yml
@@ -51,10 +51,11 @@ jobs:
echo "After:"
dotnet --list-sdks 2>$null; $LASTEXITCODE=0
- - name: Setup .NET 10.0.1xx
- uses: actions/setup-dotnet@v6.0.0
+ - name: Setup .NET
+ uses: actions/setup-dotnet@v6
with:
- dotnet-version: 10.0.1xx
+ dotnet-version: '10.x'
+ dotnet-quality: 'ga'
- name: Publish ${{ matrix.flavor }} win-x86
shell: pwsh
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4c96c21b..dbe95ddf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -69,9 +69,10 @@ jobs:
dotnet --list-sdks 2>$null; $LASTEXITCODE=0
- name: Setup .NET
- uses: actions/setup-dotnet@v6.0.0
+ uses: actions/setup-dotnet@v6
with:
- dotnet-version: '10.0.1xx'
+ dotnet-version: '10.x'
+ dotnet-quality: 'ga'
- name: Build v2rayN
shell: bash
@@ -89,7 +90,7 @@ jobs:
find ${{ matrix.arch }} -type f -name '*.pdb' -delete
- name: Upload build artifacts
- uses: actions/upload-artifact@v7.0.1
+ uses: actions/upload-artifact@v7
with:
name: ${{ matrix.arch }}
path: ${{ matrix.arch }}
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 6a616776..9cb4496c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -20,10 +20,11 @@ jobs:
fetch-depth: '0'
- name: Setup .NET
- uses: actions/setup-dotnet@v6.0.0
+ uses: actions/setup-dotnet@v6
with:
- dotnet-version: '8.0.x'
+ dotnet-version: '10.x'
+ dotnet-quality: 'ga'
- name: Test Code
working-directory: ./v2rayN
- run: dotnet test ./ServiceLib.Tests
+ run: dotnet run --project ./ServiceLib.Tests -c Release
diff --git a/v2rayN/Directory.Packages.props b/v2rayN/Directory.Packages.props
index ae214b2e..bafc2993 100644
--- a/v2rayN/Directory.Packages.props
+++ b/v2rayN/Directory.Packages.props
@@ -15,7 +15,6 @@
-
@@ -25,13 +24,12 @@
-
+
-
-
+
diff --git a/v2rayN/ServiceLib.Tests/ServiceLib.Tests.csproj b/v2rayN/ServiceLib.Tests/ServiceLib.Tests.csproj
index f86ca573..adefda0d 100644
--- a/v2rayN/ServiceLib.Tests/ServiceLib.Tests.csproj
+++ b/v2rayN/ServiceLib.Tests/ServiceLib.Tests.csproj
@@ -8,11 +8,6 @@
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-