Skip to content

Commit

Permalink
net9 update (#303)
Browse files Browse the repository at this point in the history
* Updated dependencies
* Updated to net9
* Updated documentation
* Added readme note about v3 packages

+semver: minor
  • Loading branch information
roryprimrose authored Dec 23, 2024
1 parent f1e7589 commit 2f1ecbc
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v3.0.0
uses: gittools/actions/gitversion/setup@v3.1.1
with:
versionSpec: '5.x'

- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/execute@v3.0.0
uses: gittools/actions/gitversion/execute@v3.1.1
with:
useConfigFile: true
configFilePath: ./GitVersion.yml
Expand All @@ -48,10 +48,10 @@ jobs:
fileVersion: ${{ steps.gitversion.outputs.MajorMinorPatch }}
informationalVersion: ${{ steps.gitversion.outputs.InformationalVersion }}

- name: Setup dotnet v6.0
uses: actions/setup-dotnet@v4.0.1
- name: Setup dotnet v9.0
uses: actions/setup-dotnet@v4.1.0
with:
dotnet-version: '6.0.x' # SDK Version to use.
dotnet-version: '9.0.x' # SDK Version to use.

- name: Download snk file
run: echo "${{ secrets.SNK_FILE }}" | base64 --decode > Neovolve.Logging.Xunit.snk
Expand All @@ -67,7 +67,7 @@ jobs:

- name: Generate coverage report
# run: reportgenerator -reports:**/coverage.cobertura.xml -targetdir:Report -reporttypes:HtmlInline_AzurePipelines;Cobertura
uses: danielpalme/ReportGenerator-GitHub-Action@5.3.8
uses: danielpalme/ReportGenerator-GitHub-Action@5.4.1
with:
reports: "**/coverage*cobertura.xml"
targetdir: "Report"
Expand Down
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
</PropertyGroup>
<ItemGroup Label="Package Versions used by this repository">
<!-- Direct dependencies -->
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.1" />
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="9.0.0" />
<PackageVersion Include="System.Text.Json" Version="9.0.0" />
<PackageVersion Include="Xunit.Abstractions" Version="2.0.3" />
<PackageVersion Include="NSubstitute" Version="5.3.0" />
<PackageVersion Include="ModelBuilder" Version="8.6.0" />
<PackageVersion Include="FluentAssertions" Version="6.12.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="FluentAssertions" Version="7.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="All" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.0" PrivateAssets="All" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" PrivateAssets="All" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<!-- Overrides -->
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net9.0</TargetFrameworks>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../Neovolve.Logging.Xunit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0</TargetFrameworks>
<TargetFrameworks>net9.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ Neovolve.Logging.Xunit is a NuGet package that returns an `ILogger` or `ILogger<

[![GitHub license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/roryprimrose/Neovolve.Logging.Xunit/blob/master/LICENSE)&nbsp;[![Actions Status](https://github.com/roryprimrose/Neovolve.Logging.Xunit/workflows/CI/badge.svg)](https://github.com/roryprimrose/Neovolve.Logging.Xunit/actions)

Neovolve.Logging.Xunit.v3
[![Nuget](https://img.shields.io/nuget/v/Neovolve.Logging.Xunit.v3.svg)&nbsp;![Nuget](https://img.shields.io/nuget/dt/Neovolve.Logging.Xunit.v3.svg)](https://www.nuget.org/packages/Neovolve.Logging.Xunit.v3)

Neovolve.Logging.Xunit.Signed.v3
[![Nuget](https://img.shields.io/nuget/v/Neovolve.Logging.Xunit.Signed.v3.svg)&nbsp;![Nuget](https://img.shields.io/nuget/dt/Neovolve.Logging.Xunit.Signed.v3.svg)](https://www.nuget.org/packages/Neovolve.Logging.Xunit.v3.Signed)

Neovolve.Logging.Xunit
[![Nuget](https://img.shields.io/nuget/v/Neovolve.Logging.Xunit.svg)&nbsp;![Nuget](https://img.shields.io/nuget/dt/Neovolve.Logging.Xunit.svg)](https://www.nuget.org/packages/Neovolve.Logging.Xunit)

Neovolve.Logging.Xunit.Signed
[![Nuget](https://img.shields.io/nuget/v/Neovolve.Logging.Xunit.Signed.svg)&nbsp;![Nuget](https://img.shields.io/nuget/dt/Neovolve.Logging.Xunit.Signed.svg)](https://www.nuget.org/packages/Neovolve.Logging.Xunit.Signed)

- [Installation](#installation)
- [Using xUnit v3](#using-xunit-v3)
- [Using xUnit v2](#using-xunit-v2)
- [Usage](#usage)
- [Output Formatting](#output-formatting)
- [Inspection](#inspection)
Expand All @@ -21,6 +29,20 @@ Neovolve.Logging.Xunit.Signed

## Installation

### Using xUnit v3

Run the following in the NuGet command line or visit the [NuGet package page](https://nuget.org/packages/Neovolve.Logging.Xunit.v3).

`Install-Package Neovolve.Logging.Xunit.v3`

If you need a strong named version of this library, run the following in the NuGet command line or visit the [NuGet package page](https://nuget.org/packages/Neovolve.Logging.Xunit.Signed.v3).

`Install-Package Neovolve.Logging.Xunit.Signed.v3`

[Back to top][0]

### Using xUnit v2

Run the following in the NuGet command line or visit the [NuGet package page](https://nuget.org/packages/Neovolve.Logging.Xunit).

`Install-Package Neovolve.Logging.Xunit`
Expand Down

0 comments on commit 2f1ecbc

Please sign in to comment.