Skip to content

Commit 41a705c

Browse files
committed
Add support for .NET 10
1 parent 805beb3 commit 41a705c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+292
-240
lines changed
Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,48 @@
11
name: Build and Test
22

33
on:
4-
push:
5-
branches: [ "master" ]
4+
push:
5+
branches: ["master"]
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
11-
steps:
12-
- uses: actions/checkout@v4
13-
with:
14-
fetch-depth: 0
15-
16-
- name: Setup .NET
17-
uses: actions/setup-dotnet@v4
18-
with:
19-
dotnet-version: |
20-
6.0.x
21-
8.0.x
22-
9.0.x
23-
24-
- name: Run tests
25-
run: dotnet test
26-
27-
- name: Run publish script
28-
run: ./publish-nix.sh -d
29-
30-
- name: Update rolling tag
31-
run: |
32-
git config user.name "github-actions[bot]"
33-
git config user.email "github-actions[bot]@users.noreply.github.com"
34-
git tag -f rolling
35-
git push origin :refs/tags/rolling || true
36-
git push origin rolling --force
37-
38-
- name: Upload to rolling
39-
uses: ncipollo/release-action@v1.14.0
40-
with:
41-
allowUpdates: True
42-
artifacts: "*.nupkg,*.snupkg,*.zip"
43-
body: 'Last built commit: ${{ github.sha }}'
44-
name: 'Rolling Release'
45-
prerelease: True
46-
replacesArtifacts: True
47-
tag: "rolling"
48-
updateOnlyUnreleased: True
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v5
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v5
18+
with:
19+
dotnet-version: |
20+
8.0.x
21+
9.0.x
22+
10.0.x
23+
24+
- name: Run tests
25+
run: dotnet test
26+
27+
- name: Run publish script
28+
run: ./publish-nix.sh -d
29+
30+
- name: Update rolling tag
31+
run: |
32+
git config user.name "github-actions[bot]"
33+
git config user.email "github-actions[bot]@users.noreply.github.com"
34+
git tag -f rolling
35+
git push origin :refs/tags/rolling || true
36+
git push origin rolling --force
37+
38+
- name: Upload to rolling
39+
uses: ncipollo/release-action@v1.20.0
40+
with:
41+
allowUpdates: True
42+
artifacts: "*.nupkg,*.snupkg,*.zip"
43+
body: "Last built commit: ${{ github.sha }}"
44+
name: "Rolling Release"
45+
prerelease: True
46+
replacesArtifacts: True
47+
tag: "rolling"
48+
updateOnlyUnreleased: True

.github/workflows/check_pr.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@ name: Build PR
33
on: [pull_request]
44

55
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v4
10-
11-
- name: Setup .NET
12-
uses: actions/setup-dotnet@v4
13-
with:
14-
dotnet-version: |
15-
6.0.x
16-
8.0.x
17-
9.0.x
18-
19-
- name: Build
20-
run: dotnet build
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v5
2110

22-
- name: Run tests
23-
run: dotnet test
11+
- name: Setup .NET
12+
uses: actions/setup-dotnet@v5
13+
with:
14+
dotnet-version: |
15+
8.0.x
16+
9.0.x
17+
10.0.x
18+
19+
- name: Build
20+
run: dotnet build
21+
22+
- name: Run tests
23+
run: dotnet test

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/ProtectionScan/bin/Debug/net9.0/ProtectionScan.dll",
13+
"program": "${workspaceFolder}/ProtectionScan/bin/Debug/net10.0/ProtectionScan.dll",
1414
"args": [],
1515
"cwd": "${workspaceFolder}/ProtectionScan",
1616
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

BinaryObjectScanner.Test/BinaryObjectScanner.Test.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<LangVersion>latest</LangVersion>
77
<Nullable>enable</Nullable>
@@ -16,8 +16,8 @@
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1717
<PrivateAssets>all</PrivateAssets>
1818
</PackageReference>
19-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0" />
20-
<PackageReference Include="SabreTools.Serialization" Version="[2.1.0]" />
19+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
20+
<PackageReference Include="SabreTools.Serialization" Version="[2.2.0]" />
2121
<PackageReference Include="xunit" Version="2.9.3" />
2222
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
2323
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

BinaryObjectScanner.Test/FileType/AACSMediaKeyBlockTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ public void DetectStream_EmptyStream_DefaultValue()
3131
}
3232
}
3333
}
34-

BinaryObjectScanner.Test/FileType/BDPlusSVMTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ public void DetectStream_EmptyStream_DefaultValue()
3131
}
3232
}
3333
}
34-

BinaryObjectScanner.Test/FileType/LDSCRYPTTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ public void DetectStream_EmptyStream_Null()
3131
}
3232
}
3333
}
34-

BinaryObjectScanner.Test/FileType/PLJTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ public void DetectStream_EmptyStream_DefaultValue()
3131
}
3232
}
3333
}
34-

BinaryObjectScanner.Test/FileType/RealArcadeInstallerTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ public void DetectStream_EmptyStream_Null()
3131
}
3232
}
3333
}
34-

BinaryObjectScanner.Test/FileType/RealArcadeMezzanineTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ public void DetectStream_EmptyStream_Null()
3131
}
3232
}
3333
}
34-

0 commit comments

Comments
 (0)