Skip to content

Commit 4dee9df

Browse files
committed
target the CLI and Tests projects to .NET 9.0
this also enables json reflection serializer in the trimmed executable because of introduction of the breaking change in .NET 8 Preview 7 see: https://learn.microsoft.com/en-us/dotnet/core/compatibility/serialization/8.0/publishtrimmed
1 parent 31e99f9 commit 4dee9df

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Interface/FEZRepacker.Interface.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net9.0</TargetFramework>
66
<AssemblyName>$(SolutionName)</AssemblyName>
77
<LangVersion>latest</LangVersion>
88

@@ -14,6 +14,7 @@
1414
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
1515
<PublishSingleFile>true</PublishSingleFile>
1616
<PublishTrimmed>true</PublishTrimmed>
17+
<JsonSerializerIsReflectionEnabledByDefault>true</JsonSerializerIsReflectionEnabledByDefault>
1718
</PropertyGroup>
1819

1920
<ItemGroup>

Tests/FEZRepacker.Tests.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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<LangVersion>latest</LangVersion>

0 commit comments

Comments
 (0)