Skip to content

Commit a982783

Browse files
Upgrading to NUnit4 including all required dependencies (#340)
* Upgrading to NUnit4 including all required dependencies * Bump approvals * adjust target frameworks * Update ci.yml * Netstandard * Bump and fix approvals --------- Co-authored-by: Daniel Marbach <daniel.marbach@particular.net> Co-authored-by: danielmarbach <danielmarbach@users.noreply.github.com>
1 parent 2cdeea8 commit a982783

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ jobs:
3232
uses: actions/setup-dotnet@v4.0.1
3333
with:
3434
dotnet-version: |
35-
3.1.x
36-
5.0.x
37-
6.0.x
38-
7.0.x
35+
8.0.x
3936
- name: Build
4037
run: dotnet build src --configuration Release
4138
- name: Upload packages

‎src/ServiceControl.Contracts.Tests/API/APIApprovals.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
namespace NServiceBus.PlatformConnection.UnitTests.API
1+
namespace ServiceControl.Contracts.Tests.API
22
{
33
using NUnit.Framework;
44
using Particular.Approvals;
55
using PublicApiGenerator;
6-
using ServiceControl.Contracts;
76

87
[TestFixture]
98
class APIApprovals
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net472;netcoreapp3.1;net6.0;net7.0</TargetFrameworks>
4+
<TargetFramework>net8.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
@@ -11,10 +11,10 @@
1111
<ItemGroup>
1212
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1" />
1313
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
14-
<PackageReference Include="NUnit" Version="3.14.0" />
14+
<PackageReference Include="NUnit" Version="4.2.1" />
1515
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
1616
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
17-
<PackageReference Include="Particular.Approvals" Version="0.6.0" />
17+
<PackageReference Include="Particular.Approvals" Version="2.0.0" />
1818
</ItemGroup>
1919

2020
</Project>

‎src/ServiceControl.Contracts/ServiceControl.Contracts.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<Description>Message contracts for external events pushed by ServiceControl</Description>
66
<SignAssembly>true</SignAssembly>
77
<AssemblyOriginatorKeyFile>..\ServiceControl.Contracts.snk</AssemblyOriginatorKeyFile>

0 commit comments

Comments
 (0)