Skip to content

Commit 65953b0

Browse files
authored
Updated build and tests to use .NET 8 SDK (#54)
1 parent 25fda91 commit 65953b0

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ updates:
1616
- ":robot: bot"
1717
open-pull-requests-limit: 10
1818
ignore:
19+
- dependency-name: "Moq" ## avoid Moq 4.20+
1920
- dependency-name: "FluentValidation"
2021
- dependency-name: "FluentValidation.DependencyInjectionExtensions"

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup .NET
1717
uses: actions/setup-dotnet@v1
1818
with:
19-
dotnet-version: 6.0.x
19+
dotnet-version: 8.0.x
2020
- name: Format
2121
run: dotnet format --verify-no-changes
2222

@@ -27,9 +27,7 @@ jobs:
2727
- name: Setup .NET
2828
uses: actions/setup-dotnet@v2
2929
with:
30-
dotnet-version: |
31-
3.1.x
32-
6.0.x
30+
dotnet-version: 8.0.x
3331
- name: Build
3432
run: dotnet build
3533
- name: Test
@@ -47,7 +45,7 @@ jobs:
4745
- name: Setup .NET
4846
uses: actions/setup-dotnet@v1
4947
with:
50-
dotnet-version: 6.0.x
48+
dotnet-version: 8.0.x
5149
- name: Determine version
5250
run: echo "VERSION=$(git describe --tags --dirty)" >> $GITHUB_ENV
5351
- name: Pack
@@ -65,7 +63,7 @@ jobs:
6563
- name: Setup .NET
6664
uses: actions/setup-dotnet@v1
6765
with:
68-
dotnet-version: 6.0.x
66+
dotnet-version: 8.0.x
6967
- uses: actions/download-artifact@v1
7068
with:
7169
name: artifacts

FunctionsValidationFilter.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ EndProject
1919
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0AA753A4-10D9-4E0E-B224-172CF16E3685}"
2020
ProjectSection(SolutionItems) = preProject
2121
.editorconfig = .editorconfig
22+
.github\dependabot.yml = .github\dependabot.yml
2223
Directory.Build.props = Directory.Build.props
2324
README.md = README.md
2425
EndProjectSection

test/FunctionsValidationFilter.Tests/FunctionsValidationFilter.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6</TargetFramework>
4+
<TargetFramework>net8</TargetFramework>
55
<IsPackable>false</IsPackable>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
10-
<PackageReference Include="Moq" Version="4.18.3" />
11-
<PackageReference Include="xunit" Version="2.4.2" />
12-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
9+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
10+
<PackageReference Include="Moq" Version="4.18.4" />
11+
<PackageReference Include="xunit" Version="2.6.3" />
12+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.5">
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
<PrivateAssets>all</PrivateAssets>
1515
</PackageReference>
16-
<PackageReference Include="coverlet.collector" Version="3.2.0">
16+
<PackageReference Include="coverlet.collector" Version="6.0.0">
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
<PrivateAssets>all</PrivateAssets>
1919
</PackageReference>

0 commit comments

Comments
 (0)