Skip to content

Commit

Permalink
Added .NET 8 support
Browse files Browse the repository at this point in the history
Signed-off-by: Aliaksandr Kukrash <[email protected]>
  • Loading branch information
multiarc committed Jan 11, 2025
1 parent 4d9be90 commit 08abc41
Show file tree
Hide file tree
Showing 32 changed files with 4,752 additions and 113 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,4 @@ MigrationBackup/
.ionide/

Artefacts/
/.idea
3 changes: 3 additions & 0 deletions Benchmarks/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ dotnet_diagnostic.SA1602.severity = none
# Justification: Comments turned off
# https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1633.md
dotnet_diagnostic.SA1633.severity = none

# CA1515: Consider making public types internal
dotnet_diagnostic.CA1515.severity = none
2 changes: 1 addition & 1 deletion Benchmarks/Schema.NET.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Schema.NET.Benchmarks;

using BenchmarkDotNet.Running;

public class Program
internal static class Program
{
private static void Main(string[] args) =>
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args);
Expand Down
6 changes: 4 additions & 2 deletions Benchmarks/Schema.NET.Benchmarks/Schema.NET.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

<PropertyGroup Label="Build">
<OutputType>Exe</OutputType>
<TargetFrameworks>net7.0;net6.0;net472</TargetFrameworks>
<TargetFrameworks>net8.0;net6.0;net48</TargetFrameworks>
<IsPackable>false</IsPackable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>

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

<ItemGroup Label="Package References">
<PackageReference Include="BenchmarkDotNet" Version="0.13.8" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Benchmarks/Schema.NET.Benchmarks/SchemaBenchmarkBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ namespace Schema.NET.Benchmarks;
[HtmlExporter]
[CsvMeasurementsExporter]
[RPlotExporter]
[SimpleJob(RuntimeMoniker.Net70)]
[SimpleJob(RuntimeMoniker.Net80)]
[SimpleJob(RuntimeMoniker.Net60)]
[SimpleJob(RuntimeMoniker.Net472)]
[SimpleJob(RuntimeMoniker.Net48)]
public abstract class SchemaBenchmarkBase
{
public Thing Thing { get; set; } = default!;
Expand Down
Loading

0 comments on commit 08abc41

Please sign in to comment.