Skip to content

Commit

Permalink
Upgrade to .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Nov 19, 2024
1 parent 8868135 commit c206b3a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Restore
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CodeQL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Build benchmarks
run: dotnet publish -c Release

- name: Run benchmarks
run: dotnet BenchmarkMockNet.dll
working-directory: BenchmarkMockNet/bin/Release/net8.0/publish
working-directory: BenchmarkMockNet/bin/Release/net9.0/publish

- name: Upload results report
uses: actions/upload-artifact@v4
with:
name: Results Report
path: BenchmarkMockNet/bin/Release/net8.0/publish/Results.md
path: BenchmarkMockNet/bin/Release/net9.0/publish/Results.md

- name: Upload raw results
uses: actions/upload-artifact@v4
with:
name: Raw Results
path: BenchmarkMockNet/bin/Release/net8.0/publish/BenchmarkDotNet.Artifacts/results/*.md
path: BenchmarkMockNet/bin/Release/net9.0/publish/BenchmarkDotNet.Artifacts/results/*.md
2 changes: 1 addition & 1 deletion .github/workflows/Sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 9.0.x

- name: Install Java
uses: actions/setup-java@v4
Expand Down
4 changes: 2 additions & 2 deletions BenchmarkMockNet.Tests/BenchmarkMockNet.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" />
<PackageReference Include="coverlet.collector" Version="6.0.2" PrivateAssets="all" />
Expand Down
2 changes: 1 addition & 1 deletion BenchmarkMockNet/BenchmarkMockNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SonarQubeTestProject>false</SonarQubeTestProject>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Latest official results from the GitHub Actions workflow are available on the [R

### Requirements

- .NET SDK 8
- .NET SDK

### Installation

Expand All @@ -67,6 +67,6 @@ Latest official results from the GitHub Actions workflow are available on the [R

### Usage

1. Once restored and built, run `dotnet bin/Release/net8.0/publish/BenchmarkMockNet.dll` to execute the benchmarks
1. Once restored and built, run `dotnet bin/Release/net9.0/publish/BenchmarkMockNet.dll` to execute the benchmarks
2. Benchmarks will take about 5 minutes to run
3. Results are stored in the `BenchmarkDotNet.Artifacts` directory, in both HTML and Markdown formats

0 comments on commit c206b3a

Please sign in to comment.