Skip to content

Commit

Permalink
Updated projects to dotnet 8.0 and updated benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Joiner committed Nov 14, 2023
1 parent 8aa8721 commit 1cd8df1
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Benchmarks/Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net48;net5.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net48;net6.0;net7.0;net8.0</TargetFrameworks>
<Configurations>Debug;Release;LocalRelease</Configurations>
</PropertyGroup>

Expand Down
8 changes: 4 additions & 4 deletions Benchmarks/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public Config()
AddJob(package_0_8_0.WithRuntime(CoreRuntime.Core50));
AddJob(package_0_8_0.WithRuntime(CoreRuntime.Core60));
AddJob(package_0_8_0.WithRuntime(CoreRuntime.Core70));
//AddJob(package_0_8_0.WithRuntime(CoreRuntime.Core80));
AddJob(package_0_8_0.WithRuntime(CoreRuntime.Core80));
#else
var package_0_5_2 = baseJob.WithNuGet("DwC-A_dotnet", "0.5.2").WithId("0.5.2");
var package_0_6_2 = baseJob.WithNuGet("DwC-A_dotnet", "0.6.2").WithId("0.6.2");
Expand All @@ -25,17 +25,17 @@ public Config()
AddJob(package_0_5_2.WithRuntime(CoreRuntime.Core50));
AddJob(package_0_5_2.WithRuntime(CoreRuntime.Core60));
AddJob(package_0_5_2.WithRuntime(CoreRuntime.Core70));
//AddJob(package_0_5_2.WithRuntime(CoreRuntime.Core80));
AddJob(package_0_5_2.WithRuntime(CoreRuntime.Core80));
AddJob(package_0_6_2.WithRuntime(ClrRuntime.Net48));
AddJob(package_0_6_2.WithRuntime(CoreRuntime.Core50));
AddJob(package_0_6_2.WithRuntime(CoreRuntime.Core60));
AddJob(package_0_6_2.WithRuntime(CoreRuntime.Core70));
//AddJob(package_0_6_2.WithRuntime(CoreRuntime.Core80));
AddJob(package_0_6_2.WithRuntime(CoreRuntime.Core80));
AddJob(package_0_7_0.WithRuntime(ClrRuntime.Net48));
AddJob(package_0_7_0.WithRuntime(CoreRuntime.Core50));
AddJob(package_0_7_0.WithRuntime(CoreRuntime.Core60));
AddJob(package_0_7_0.WithRuntime(CoreRuntime.Core70));
//AddJob(package_0_7_0.WithRuntime(CoreRuntime.Core80));
AddJob(package_0_7_0.WithRuntime(CoreRuntime.Core80));
#endif
}
}
Expand Down
4 changes: 2 additions & 2 deletions Benchmarks/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
To run benchmarks for the current release from the command line and save logs/results use the following command line.

```
dotnet run -c LocalRelease --framework net48 net50 net60 net70
dotnet run -c LocalRelease --framework net48 net50 net60 net70 net80
```
To run benchmarks for the previous releases use the following command line.

```
dotnet run -c Release --framework net48 net50 net60 net70
dotnet run -c Release --framework net48 net50 net60 net70 net80
```
2 changes: 1 addition & 1 deletion src/DWC_A/DwC-A_dotnet.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0;net6.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<TargetFrameworks>net8.0;net7.0;net6.0;netstandard2.1;netstandard2.0</TargetFrameworks>
<RootNamespace>DwC_A</RootNamespace>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Configurations>Debug;Release;LocalRelease</Configurations>
Expand Down
10 changes: 2 additions & 8 deletions src/DWC_A/Exceptions/FileReaderNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace DwC_A.Exceptions
{
Expand All @@ -14,19 +13,14 @@ public FileReaderNotFoundException()
{
}

public FileReaderNotFoundException(string fileName) :
public FileReaderNotFoundException(string fileName) :
base(BuildMessage(fileName))
{
}

public FileReaderNotFoundException(string fileName, Exception innerException) :
public FileReaderNotFoundException(string fileName, Exception innerException) :
base(BuildMessage(fileName), innerException)
{
}

protected FileReaderNotFoundException(SerializationInfo info, StreamingContext context) :
base(info, context)
{
}
}
}
10 changes: 2 additions & 8 deletions src/DWC_A/Exceptions/InvalidArchiveException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace DwC_A.Exceptions
{
Expand All @@ -14,19 +13,14 @@ public InvalidArchiveException()
{
}

public InvalidArchiveException(string path) :
public InvalidArchiveException(string path) :
base(BuildMessage(path))
{
}

public InvalidArchiveException(string path, Exception innerException) :
public InvalidArchiveException(string path, Exception innerException) :
base(BuildMessage(path), innerException)
{
}

protected InvalidArchiveException(SerializationInfo info, StreamingContext context) :
base(info, context)
{
}
}
}
7 changes: 1 addition & 6 deletions src/DWC_A/Exceptions/TermNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Runtime.Serialization;

namespace DwC_A.Exceptions
{
Expand All @@ -15,13 +14,9 @@ public TermNotFoundException(string term) :
{
}

public TermNotFoundException(string term, Exception innerException) :
public TermNotFoundException(string term, Exception innerException) :
base(BuildMessage(term), innerException)
{
}

protected TermNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
}
}
2 changes: 1 addition & 1 deletion src/Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<Configurations>Debug;Release;LocalRelease</Configurations>
</PropertyGroup>

Expand Down

0 comments on commit 1cd8df1

Please sign in to comment.