Skip to content

Commit f49d65a

Browse files
committed
updated to net9
1 parent df91940 commit f49d65a

31 files changed

+61
-84
lines changed

.github/workflows/dotnet.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup .NET
2121
uses: actions/setup-dotnet@v3
2222
with:
23-
dotnet-version: 8.0.x
23+
dotnet-version: 9.0.x
2424

2525
- name: Restore dependencies
2626
run: dotnet restore
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup .NET
4242
uses: actions/setup-dotnet@v3
4343
with:
44-
dotnet-version: 8.0.x
44+
dotnet-version: 9.0.x
4545

4646
- name: Restore dependencies
4747
run: dotnet restore

BuildLauncher.sln

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Microsoft Visual Studio Solution File, Format Version 12.00
23
# Visual Studio Version 17
34
VisualStudioVersion = 17.9.34407.89
@@ -10,8 +11,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests", "src\Tests\Tests.cs
1011
EndProject
1112
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tools", "src\Tools\Tools.csproj", "{D1712DC4-7DDF-4FCB-A00D-F7771F03F9BB}"
1213
EndProject
13-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web.Blazor", "Web.Blazor\Web.Blazor.csproj", "{604FE3A0-9DD3-43E3-83D4-C456AFCE7935}"
14-
EndProject
1514
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Database.Client", "src\Database.Client\Database.Client.csproj", "{C91DED4C-A480-49E7-B359-B0EE0D7CFCBC}"
1615
EndProject
1716
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Database", "Database", "{B993F151-5501-453B-8EB6-72B3F7D49B06}"
@@ -38,6 +37,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Server", "src\Common
3837
EndProject
3938
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Common.Client", "src\Common.Client\Common.Client.csproj", "{5317FF71-8EDD-4EFB-8644-A9F4E144CB60}"
4039
EndProject
40+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Web.Blazor", "Web.Blazor\Web.Blazor.csproj", "{4DBE9BC3-F166-4973-8D22-3A7A1150BB89}"
41+
EndProject
4142
Global
4243
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4344
Debug|Any CPU = Debug|Any CPU
@@ -60,10 +61,6 @@ Global
6061
{D1712DC4-7DDF-4FCB-A00D-F7771F03F9BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
6162
{D1712DC4-7DDF-4FCB-A00D-F7771F03F9BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
6263
{D1712DC4-7DDF-4FCB-A00D-F7771F03F9BB}.Release|Any CPU.Build.0 = Release|Any CPU
63-
{604FE3A0-9DD3-43E3-83D4-C456AFCE7935}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
64-
{604FE3A0-9DD3-43E3-83D4-C456AFCE7935}.Debug|Any CPU.Build.0 = Debug|Any CPU
65-
{604FE3A0-9DD3-43E3-83D4-C456AFCE7935}.Release|Any CPU.ActiveCfg = Release|Any CPU
66-
{604FE3A0-9DD3-43E3-83D4-C456AFCE7935}.Release|Any CPU.Build.0 = Release|Any CPU
6764
{C91DED4C-A480-49E7-B359-B0EE0D7CFCBC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6865
{C91DED4C-A480-49E7-B359-B0EE0D7CFCBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
6966
{C91DED4C-A480-49E7-B359-B0EE0D7CFCBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -96,6 +93,10 @@ Global
9693
{5317FF71-8EDD-4EFB-8644-A9F4E144CB60}.Debug|Any CPU.Build.0 = Debug|Any CPU
9794
{5317FF71-8EDD-4EFB-8644-A9F4E144CB60}.Release|Any CPU.ActiveCfg = Release|Any CPU
9895
{5317FF71-8EDD-4EFB-8644-A9F4E144CB60}.Release|Any CPU.Build.0 = Release|Any CPU
96+
{4DBE9BC3-F166-4973-8D22-3A7A1150BB89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
97+
{4DBE9BC3-F166-4973-8D22-3A7A1150BB89}.Debug|Any CPU.Build.0 = Debug|Any CPU
98+
{4DBE9BC3-F166-4973-8D22-3A7A1150BB89}.Release|Any CPU.ActiveCfg = Release|Any CPU
99+
{4DBE9BC3-F166-4973-8D22-3A7A1150BB89}.Release|Any CPU.Build.0 = Release|Any CPU
99100
EndGlobalSection
100101
GlobalSection(SolutionProperties) = preSolution
101102
HideSolutionNode = FALSE
@@ -104,7 +105,6 @@ Global
104105
{3DE48404-FDA3-4385-8C8D-AB0E32D1E877} = {11DCE2CE-F784-4DAE-8F75-9D073B2D4E3D}
105106
{1234E66C-EE8D-4002-9D03-6E295D53C6E8} = {11DCE2CE-F784-4DAE-8F75-9D073B2D4E3D}
106107
{D1712DC4-7DDF-4FCB-A00D-F7771F03F9BB} = {11DCE2CE-F784-4DAE-8F75-9D073B2D4E3D}
107-
{604FE3A0-9DD3-43E3-83D4-C456AFCE7935} = {C9BFEF9F-CC19-498C-AC72-6520956ACFF6}
108108
{C91DED4C-A480-49E7-B359-B0EE0D7CFCBC} = {B993F151-5501-453B-8EB6-72B3F7D49B06}
109109
{7D844F7C-AF4A-4675-B5FF-9F9EE5F26935} = {C9BFEF9F-CC19-498C-AC72-6520956ACFF6}
110110
{2BC72FC5-2EAF-46DD-B0EB-6AF06F28FCD3} = {B993F151-5501-453B-8EB6-72B3F7D49B06}
@@ -113,6 +113,7 @@ Global
113113
{FF304C35-3B91-4BDE-9C2A-3525A76094D0} = {0157A31F-D187-437F-B5F3-6C3B061A360B}
114114
{6AD0A908-DE93-4A09-BC34-AF1AC2E45549} = {0157A31F-D187-437F-B5F3-6C3B061A360B}
115115
{5317FF71-8EDD-4EFB-8644-A9F4E144CB60} = {0157A31F-D187-437F-B5F3-6C3B061A360B}
116+
{4DBE9BC3-F166-4973-8D22-3A7A1150BB89} = {C9BFEF9F-CC19-498C-AC72-6520956ACFF6}
116117
EndGlobalSection
117118
GlobalSection(ExtensibilityGlobals) = postSolution
118119
SolutionGuid = {48D7012C-36C8-4BB1-B61F-BE38BB907CCD}

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<Version>0.24.0</Version>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<LangVersion>latest</LangVersion>
77
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>

Directory.Packages.props

+10-10
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.3.2" />
1515
<PackageVersion Include="Markdown.Avalonia" Version="11.0.2" />
1616
<PackageVersion Include="MediatR" Version="12.4.1" />
17-
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="8.0.10" />
18-
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
17+
<PackageVersion Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
18+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0">
1919
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2020
<PrivateAssets>all</PrivateAssets>
2121
</PackageVersion>
22-
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.10" />
23-
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.10" />
24-
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.10" />
25-
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
26-
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.2" />
27-
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="8.0.1" />
22+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
23+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0" />
24+
<PackageVersion Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.0" />
25+
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
26+
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
27+
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="9.0.0" />
2828
<PackageVersion Include="Projektanker.Icons.Avalonia.MaterialDesign" Version="9.4.1" />
2929
<PackageVersion Include="SharpCompress" Version="0.38.0" />
3030
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
@@ -35,9 +35,9 @@
3535
<PackageVersion Include="AWSSDK.S3" Version="3.7.405.12" />
3636
<PackageVersion Include="ConfigureAwaitAnalyzer" Version="1.1.0" />
3737
<PackageVersion Include="Swashbuckle.AspNetCore" Version="6.9.0" />
38-
<PackageVersion Include="Microsoft.AspNetCore.SpaProxy" Version="8.0.10" />
38+
<PackageVersion Include="Microsoft.AspNetCore.SpaProxy" Version="9.0.0" />
3939
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.10" />
4040
<PackageVersion Include="Markdig" Version="0.38.0" />
41-
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
41+
<PackageVersion Include="System.Text.Json" Version="9.0.0" />
4242
</ItemGroup>
4343
</Project>

Web.Blazor/Web.Blazor.csproj

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<Nullable>enable</Nullable>
6-
<ImplicitUsings>enable</ImplicitUsings>
74
<UserSecretsId>00d796d2-6ca4-45c9-9494-4492240aeb95</UserSecretsId>
85
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
96
</PropertyGroup>

src/Addons/Addons.csproj

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
74
<AssemblyName>BuildLauncher.$(MSBuildProjectName)</AssemblyName>
85
</PropertyGroup>
96

src/Api.Common/Api.Common.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Configurations>Debug;Release</Configurations>
54
<AssemblyName>BuildLauncher.$(MSBuildProjectName)</AssemblyName>
65
</PropertyGroup>
76

src/Avalonia.Desktop/Avalonia.Desktop.csproj

+7-20
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
<StartupObject>Avalonia.Desktop.Program</StartupObject>
1111
<ApplicationIcon>icon.ico</ApplicationIcon>
1212
</PropertyGroup>
13-
<ItemGroup>
14-
<None Remove="Assets\tw.png" />
15-
<None Remove="Assets\wh.png" />
16-
</ItemGroup>
1713

1814
<ItemGroup>
1915
<AvaloniaResource Include="Assets\blood.png" />
@@ -29,9 +25,6 @@
2925
<AvaloniaResource Include="Assets\slave.png" />
3026
<AvaloniaResource Include="Assets\sw.png" />
3127
<AvaloniaResource Include="Assets\ww2gi.png" />
32-
</ItemGroup>
33-
34-
<ItemGroup>
3528
<AvaloniaResource Include="Assets\tw.png" />
3629
<AvaloniaResource Include="Assets\wh.png" />
3730
</ItemGroup>
@@ -43,25 +36,19 @@
4336
<PackageReference Include="Avalonia.Fonts.Inter" />
4437
<PackageReference Include="CommunityToolkit.Diagnostics" />
4538
<PackageReference Include="ConfigureAwaitAnalyzer" PrivateAssets="all" />
46-
<PackageReference Include="Avalonia" />
47-
<PackageReference Include="Avalonia.Controls.DataGrid" />
48-
<PackageReference Include="Avalonia.Themes.Fluent" />
49-
<PackageReference Include="CommunityToolkit.Mvvm" />
50-
<PackageReference Include="Markdown.Avalonia" />
51-
<PackageReference Include="Projektanker.Icons.Avalonia.MaterialDesign" />
52-
<PackageReference Include="System.Private.Uri" />
39+
<PackageReference Include="Avalonia" />
40+
<PackageReference Include="Avalonia.Controls.DataGrid" />
41+
<PackageReference Include="Avalonia.Themes.Fluent" />
42+
<PackageReference Include="CommunityToolkit.Mvvm" />
43+
<PackageReference Include="Markdown.Avalonia" />
44+
<PackageReference Include="Projektanker.Icons.Avalonia.MaterialDesign" />
45+
<PackageReference Include="System.Private.Uri" />
5346
</ItemGroup>
5447

5548
<ItemGroup>
5649
<ProjectReference Include="..\Games\Games.csproj" />
5750
<ProjectReference Include="..\Ports\Ports.csproj" />
5851
<ProjectReference Include="..\Tools\Tools.csproj" />
5952
</ItemGroup>
60-
61-
<ItemGroup>
62-
<Compile Update="Pages\StandalonePage.axaml.cs">
63-
<DependentUpon>StandalonePage.axaml</DependentUpon>
64-
</Compile>
65-
</ItemGroup>
6653

6754
</Project>

src/Avalonia.Desktop/Properties/PublishProfiles/Linux.pubxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
99
<PublishDir>..\..\publish</PublishDir>
1010
<PublishProtocol>FileSystem</PublishProtocol>
1111
<_TargetId>Folder</_TargetId>
12-
<TargetFramework>net8.0</TargetFramework>
12+
<TargetFramework>net9.0</TargetFramework>
1313
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
1414
<SelfContained>true</SelfContained>
1515
<PublishSingleFile>true</PublishSingleFile>

src/Avalonia.Desktop/Properties/PublishProfiles/Windows.pubxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
99
<PublishDir>..\..\publish</PublishDir>
1010
<PublishProtocol>FileSystem</PublishProtocol>
1111
<_TargetId>Folder</_TargetId>
12-
<TargetFramework>net8.0</TargetFramework>
12+
<TargetFramework>net9.0</TargetFramework>
1313
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1414
<SelfContained>true</SelfContained>
1515
<PublishSingleFile>true</PublishSingleFile>

src/Avalonia.Desktop/ViewModels/PortsViewModel.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ public sealed partial class PortsViewModel : ObservableObject
88
{
99
private readonly ViewModelsFactory _viewModelsFactory;
1010
private readonly Dictionary<PortEnum, bool> _updatesList = [];
11-
private readonly object _lock = new();
11+
private readonly Lock _lock = new();
1212

13-
public bool HasUpdates
13+
public bool HasUpdates
1414
{
1515
get
1616
{
17-
lock (_lock)
17+
using (_lock.EnterScope())
1818
{
1919
return _updatesList.Values.Any(x => x);
2020
}
@@ -39,7 +39,7 @@ ViewModelsFactory viewModelsFactory
3939
/// </summary>
4040
private void Initialize()
4141
{
42-
lock (_lock)
42+
using (_lock.EnterScope())
4343
{
4444
var edukeVm = _viewModelsFactory.GetPortViewModel(PortEnum.EDuke32);
4545
edukeVm.PortChangedEvent += OnPortChanged;

src/Common.Client/Api/GitHubApiInterface.cs

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ HttpClient httpClient
108108
[JsonSourceGenerationOptions(
109109
WriteIndented = true,
110110
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
111+
RespectNullableAnnotations = true,
111112
Converters = [
112113
typeof(JsonStringEnumConverter<GameEnum>),
113114
typeof(JsonStringEnumConverter<AddonTypeEnum>)

src/Common.Client/Common.Client.csproj

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
5-
<ImplicitUsings>enable</ImplicitUsings>
6-
<Nullable>enable</Nullable>
74
<AssemblyName>BuildLauncher.$(MSBuildProjectName)</AssemblyName>
85
</PropertyGroup>
96

src/Common.Client/DI/BindingsManager.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ public static class BindingsManager
66
{
77
private static ServiceCollection? _instance;
88
private static ServiceProvider? _provider;
9-
private static readonly object _syncRoot = new();
9+
private static readonly Lock _lock = new();
1010

1111
public static ServiceCollection Instance
1212
{
1313
get
1414
{
1515
if (_instance is null)
1616
{
17-
lock (_syncRoot)
17+
using (_lock.EnterScope())
1818
{
1919
_instance = new ServiceCollection();
2020
}
@@ -30,7 +30,7 @@ public static ServiceProvider Provider
3030
{
3131
if (_provider is null)
3232
{
33-
lock (_syncRoot)
33+
using (_lock.EnterScope())
3434
{
3535
_provider = Instance.BuildServiceProvider();
3636
}

src/Common.Common/Common.Common.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Configurations>Debug;Release</Configurations>
54
<AssemblyName>BuildLauncher.$(MSBuildProjectName)</AssemblyName>
65
</PropertyGroup>
76

src/Common.Common/Entities/AddonsJsonEntity.cs

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public sealed class AddonsJsonEntity
4040
[JsonSourceGenerationOptions(
4141
WriteIndented = true,
4242
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
43+
RespectNullableAnnotations = true,
4344
Converters = [
4445
typeof(JsonStringEnumConverter<GameEnum>),
4546
typeof(JsonStringEnumConverter<AddonTypeEnum>)

src/Common.Common/Entities/DownloadableAddonEntity.cs

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public string ToMarkdownString()
161161
[JsonSourceGenerationOptions(
162162
WriteIndented = true,
163163
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
164+
RespectNullableAnnotations = true,
164165
Converters = [
165166
typeof(JsonStringEnumConverter<GameEnum>),
166167
typeof(JsonStringEnumConverter<AddonTypeEnum>)

src/Common.Common/Entities/GeneralReleaseEntity.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ public sealed class GeneralReleaseEntity
2222
/// </summary>
2323
public required Uri? DownloadUrl { get; init; }
2424
}
25-
[JsonSourceGenerationOptions(Converters = [typeof(JsonStringEnumConverter<GameEnum>)])]
25+
26+
27+
[JsonSourceGenerationOptions(
28+
Converters = [typeof(JsonStringEnumConverter<GameEnum>)]
29+
)]
2630
[JsonSerializable(typeof(List<GeneralReleaseEntity>))]
2731
public sealed partial class GeneralReleaseEntityContext : JsonSerializerContext;

src/Common.Common/Entities/GithubReleaseEntity.cs

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public sealed class GitHubReleaseEntity
2121
public string Description { get; set; }
2222
}
2323

24+
25+
[JsonSourceGenerationOptions(RespectNullableAnnotations = true)]
2426
[JsonSerializable(typeof(List<GitHubReleaseEntity>))]
2527
public sealed partial class GitHubReleaseEntityContext : JsonSerializerContext;
2628

@@ -37,5 +39,7 @@ public sealed class GitHubReleaseAsset
3739
public DateTime UpdatedDate { get; set; }
3840
}
3941

42+
43+
[JsonSourceGenerationOptions(RespectNullableAnnotations = true)]
4044
[JsonSerializable(typeof(List<GitHubReleaseAsset>))]
4145
public sealed partial class GitHubReleaseAssetContext : JsonSerializerContext;

src/Common.Common/Serializable/Addon/AddonDto.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public sealed class AddonDto
8383
UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow,
8484
AllowTrailingCommas = true,
8585
WriteIndented = true,
86-
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
86+
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
87+
RespectNullableAnnotations = true
8788
)]
8889
[JsonSerializable(typeof(AddonDto))]
8990
public sealed partial class AddonManifestContext : JsonSerializerContext;

src/Common.Common/Serializable/Addon/DependencyDto.cs

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ public sealed class DependencyDto
1212
public List<FeatureEnum>? RequiredFeatures { get; set; }
1313
}
1414

15+
16+
[JsonSourceGenerationOptions(RespectNullableAnnotations = true)]
1517
[JsonSerializable(typeof(DependencyDto))]
1618
public sealed partial class DependencyDtoContext : JsonSerializerContext;
1719

@@ -25,5 +27,7 @@ public sealed class DependantAddonDto
2527
public string? Version { get; set; }
2628
}
2729

30+
31+
[JsonSourceGenerationOptions(RespectNullableAnnotations = true)]
2832
[JsonSerializable(typeof(DependantAddonDto))]
2933
public sealed partial class DependantAddonDtoContext : JsonSerializerContext;

src/Common.Common/Serializable/Addon/MapFileDto.cs

+2
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ public sealed class MapFileDto : IStartMap
99
public required string File { get; set; }
1010
}
1111

12+
13+
[JsonSourceGenerationOptions(RespectNullableAnnotations = true)]
1214
[JsonSerializable(typeof(MapFileDto))]
1315
public sealed partial class MapFileDtoContext : JsonSerializerContext;

src/Common.Common/Serializable/Addon/MapSlotDto.cs

+2
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ public sealed class MapSlotDto : IStartMap
1212
public required int Level { get; set; }
1313
}
1414

15+
16+
[JsonSourceGenerationOptions(RespectNullableAnnotations = true)]
1517
[JsonSerializable(typeof(MapSlotDto))]
1618
public sealed partial class MapSlotDtoContext : JsonSerializerContext;

0 commit comments

Comments
 (0)