Skip to content

Commit a8eb5db

Browse files
authored
Add testing for .NET 10 and suppress annoying NuGet warnings that I don't care about (#251)
1 parent ba541e1 commit a8eb5db

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/BuildAndPack.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- uses: actions/setup-dotnet@v4
3232
with:
3333
dotnet-version: |
34+
10.0.x
3435
9.0.x
3536
8.0.x
3637
6.0.x

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.100",
4-
"rollForward": "minor",
3+
"version": "10.0.100-preview.6.25358.103",
4+
"rollForward": "disable",
55
"allowPrerelease": true
66
}
77
}

test/Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
<PropertyGroup>
66
<!-- .NET Core 3.1 won't run easily in github actions (due to missing libssl) so limit it to Windows-->
7-
<TargetFrameworks>net6.0;net8.0;net9.0</TargetFrameworks>
7+
<TargetFrameworks>net6.0;net8.0;net9.0;net10.0</TargetFrameworks>
88
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">netcoreapp3.1;$(TargetFrameworks)</TargetFrameworks>
99

1010
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
1111
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
12+
<NuGetAudit>false</NuGetAudit>
13+
<NoWarn>$(NoWarn);NU1510</NoWarn>
1214
</PropertyGroup>
1315

1416
</Project>

test/NetEscapades.AspNetCore.SecurityHeaders.Test/NetEscapades.AspNetCore.SecurityHeaders.Test.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@
3535
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.0" />
3636
</ItemGroup>
3737

38-
3938
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
4039
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.0" />
4140
</ItemGroup>
4241

42+
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
43+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="10.0.0-preview.5.25277.114" />
44+
</ItemGroup>
45+
4346
<ItemGroup>
4447
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
4548
</ItemGroup>

0 commit comments

Comments
 (0)