Skip to content

Commit

Permalink
Update to .NET 6 and update packages
Browse files Browse the repository at this point in the history
NetCoreServer 5.1.0 -> 6.7.0
BenchmarkDotNet 0.13.1 -> 0.13.5
ENet-CSharp 2.4.7 -> 2.4.8
  • Loading branch information
JohannesDeml committed Apr 3, 2023
1 parent 505005a commit 29f01ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions NetworkBenchmarkDotNet/NetworkBenchmarkDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
<LangVersion>9</LangVersion>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<IsWindows Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">true</IsWindows>
<IsOSX Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">true</IsOSX>
<IsLinux Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">true</IsLinux>
Expand All @@ -30,11 +30,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
<PackageReference Include="ENet-CSharp" Version="2.4.7" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
<PackageReference Include="ENet-CSharp" Version="2.4.8" />
<PackageReference Include="LiteNetLib" Version="1.0.1" />
<PackageReference Include="NetCoreServer" Version="5.1.0" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20574.7" />
<PackageReference Include="NetCoreServer" Version="6.7.0" />
</ItemGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion NetworkBenchmarkDotNet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
using System.CommandLine;
using System.CommandLine.Invocation;
using System.Linq;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;

namespace NetworkBenchmark
Expand Down Expand Up @@ -112,7 +113,7 @@ private static void RunBenchmark<T>()
"The following benchmarks are failed to build: " +
string.Join(", ", summary.Reports.Where(r => !r.BuildResult.IsBuildSuccess).Select(r => r.BenchmarkCase.DisplayInfo)));

Assert(summary.Reports.All(r => r.ExecuteResults.Any(er => er.FoundExecutable && er.Data.Any())),
Assert(summary.Reports.All(r => r.ExecuteResults.Any(er => er.FoundExecutable && er.Results.Any())),
"All reports should have at least one \"ExecuteResult\" with \"FoundExecutable\" = true and at least one \"Data\" item");

Assert(summary.Reports.All(report => report.AllMeasurements.Any()),
Expand Down

0 comments on commit 29f01ea

Please sign in to comment.