Skip to content

Commit 24c516e

Browse files
🚲 Reference STJ package
For some reason this fixes build with STJ source generation. Co-authored-by: Bruce Wayne <admin@bige0.com>
1 parent ab13c2d commit 24c516e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

‎YoutubeDl.Wpf/Models/Preset.cs‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
using System.Collections.Generic;
1+
#pragma warning disable IDE0079
2+
// STJ source generation actually supports record types with constructor parameters.
3+
// See discussions at https://github.com/dotnet/runtime/issues/58770.
4+
// Analyzer fix: https://github.com/dotnet/runtime/pull/68064.
5+
// Warning suppression is needed for .NET 6.
6+
#pragma warning disable SYSLIB1037
7+
#pragma warning restore IDE0079
8+
9+
using System.Collections.Generic;
210

311
namespace YoutubeDl.Wpf.Models;
412

‎YoutubeDl.Wpf/YoutubeDl.Wpf.csproj‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
<PackageReference Include="Serilog" Version="2.11.0" />
5050
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
5151
<PackageReference Include="Splat.Serilog" Version="14.2.8" />
52+
<PackageReference Include="System.Text.Json" Version="6.0.3" />
5253
</ItemGroup>
5354

5455
<ItemGroup>

0 commit comments

Comments
 (0)