Skip to content

Commit 08abc41

Browse files
committed
Added .NET 8 support
Signed-off-by: Aliaksandr Kukrash <multiarc@gmail.com>
1 parent 4d9be90 commit 08abc41

32 files changed

+4752
-113
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,3 +352,4 @@ MigrationBackup/
352352
.ionide/
353353

354354
Artefacts/
355+
/.idea

Benchmarks/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ dotnet_diagnostic.SA1602.severity = none
3838
# Justification: Comments turned off
3939
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1633.md
4040
dotnet_diagnostic.SA1633.severity = none
41+
42+
# CA1515: Consider making public types internal
43+
dotnet_diagnostic.CA1515.severity = none

Benchmarks/Schema.NET.Benchmarks/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ namespace Schema.NET.Benchmarks;
22

33
using BenchmarkDotNet.Running;
44

5-
public class Program
5+
internal static class Program
66
{
77
private static void Main(string[] args) =>
88
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);

Benchmarks/Schema.NET.Benchmarks/Schema.NET.Benchmarks.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
<PropertyGroup Label="Build">
44
<OutputType>Exe</OutputType>
5-
<TargetFrameworks>net7.0;net6.0;net472</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net6.0;net48</TargetFrameworks>
66
<IsPackable>false</IsPackable>
7+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
8+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
79
</PropertyGroup>
810

911
<ItemGroup Label="Project References">
1012
<ProjectReference Include="..\..\Source\Schema.NET\Schema.NET.csproj" />
1113
</ItemGroup>
1214

1315
<ItemGroup Label="Package References">
14-
<PackageReference Include="BenchmarkDotNet" Version="0.13.8" />
16+
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
1517
</ItemGroup>
1618

1719
</Project>

Benchmarks/Schema.NET.Benchmarks/SchemaBenchmarkBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ namespace Schema.NET.Benchmarks;
1212
[HtmlExporter]
1313
[CsvMeasurementsExporter]
1414
[RPlotExporter]
15-
[SimpleJob(RuntimeMoniker.Net70)]
15+
[SimpleJob(RuntimeMoniker.Net80)]
1616
[SimpleJob(RuntimeMoniker.Net60)]
17-
[SimpleJob(RuntimeMoniker.Net472)]
17+
[SimpleJob(RuntimeMoniker.Net48)]
1818
public abstract class SchemaBenchmarkBase
1919
{
2020
public Thing Thing { get; set; } = default!;

0 commit comments

Comments
 (0)