Skip to content

Commit 45490a7

Browse files
committed
Compile JsonApiDotNetCore against .NET 9
1 parent d2f2921 commit 45490a7

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<!-- Specific to .NET 9 -->
2828
<PropertyGroup>
2929
<NuGetAuditMode>direct</NuGetAuditMode>
30-
<NoWarn>$(NoWarn);NU1608;NETSDK1215</NoWarn>
30+
<NoWarn>$(NoWarn);NU5104;NU1608</NoWarn>
3131
</PropertyGroup>
3232

3333
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">

benchmarks/Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>Exe</OutputType>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ServerGarbageCollection>true</ServerGarbageCollection>
66
</PropertyGroup>
77

package-versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<PropertyGroup Condition="'$(TargetFramework)' == 'net9.0'">
2424
<!-- Published dependencies (only update on major version change) -->
25-
<EntityFrameworkCoreFrozenVersion>N/A</EntityFrameworkCoreFrozenVersion>
25+
<EntityFrameworkCoreFrozenVersion>9.0.0</EntityFrameworkCoreFrozenVersion>
2626

2727
<!-- Non-published dependencies (these are safe to update, won't cause a breaking change) -->
2828
<AspNetCoreVersion>9.0.*</AspNetCoreVersion>

src/JsonApiDotNetCore.Annotations/JsonApiDotNetCore.Annotations.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0;net6.0;netstandard1.0</TargetFrameworks>
3+
<TargetFrameworks>net9.0;net8.0;net6.0;netstandard2.0</TargetFrameworks>
44
<IsPackable>true</IsPackable>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<RootNamespace>JsonApiDotNetCore</RootNamespace>
@@ -31,17 +31,17 @@
3131

3232
<!-- We multi-target against NetStandard solely to enable consumers to share their models project with .NET Framework code. -->
3333

34-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
34+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
3535
<Using Remove="System.Net.Http" />
3636
</ItemGroup>
3737

38-
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
38+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
3939
<Compile Remove="**/*.cs" />
4040
<Compile Include="**/*.shared.cs" />
4141
<Compile Include="**/*.netstandard.cs" />
4242
</ItemGroup>
4343

44-
<ItemGroup Condition=" '$(TargetFramework)' != 'netstandard1.0' ">
44+
<ItemGroup Condition=" '$(TargetFramework)' != 'netstandard2.0' ">
4545
<Compile Remove="**/*.netstandard.cs" />
4646
<None Include="**/*.netstandard.cs" />
4747
</ItemGroup>

src/JsonApiDotNetCore/JsonApiDotNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
3+
<TargetFrameworks>net9.0;net8.0;net6.0</TargetFrameworks>
44
<IsPackable>true</IsPackable>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
</PropertyGroup>

0 commit comments

Comments
 (0)