Skip to content

Commit 2bffd8b

Browse files
authored
Merge pull request #28 from WeihanLi/master
update to .NET 8 (xUnit only)
2 parents 09a7fa4 + 0d3d63c commit 2bffd8b

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

Directory.Build.props

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
{net5.0, netstandard2.1},
77
{net6.0, net6.0}
88
{net7.0, net7.0}
9+
{net8.0, net8.0}
910
It is also important to made sure that tests and example project have valid dependencies-->
10-
<TargetFrameworkForExampleAndTests>net7.0</TargetFrameworkForExampleAndTests>
11-
<TargetFrameworkForLib>net7.0</TargetFrameworkForLib>
11+
<TargetFrameworkForExampleAndTests>net8.0</TargetFrameworkForExampleAndTests>
12+
<TargetFrameworkForLib>net8.0</TargetFrameworkForLib>
1213

13-
<EntityFrameworkMinSupportedVersion>7.0.0</EntityFrameworkMinSupportedVersion>
14-
<EntityFrameworkCurrentVersion>7.0.*</EntityFrameworkCurrentVersion>
15-
<MicrosoftTestSDKVersion>17.4.0</MicrosoftTestSDKVersion>
14+
<EntityFrameworkMinSupportedVersion>8.0.0</EntityFrameworkMinSupportedVersion>
15+
<EntityFrameworkCurrentVersion>8.0.*</EntityFrameworkCurrentVersion>
16+
<MicrosoftTestSDKVersion>17.8.0</MicrosoftTestSDKVersion>
1617
</PropertyGroup>
1718

1819
<!-- Unit testing support nugets related config.
@@ -25,7 +26,7 @@
2526
<UseUnitTestingSupportNugetsInsteadOfProjects>false</UseUnitTestingSupportNugetsInsteadOfProjects>
2627

2728
<!--Used only if UseUnitTestingSupportNugetsInsteadOfProjects is set to true -->
28-
<UnitTestingSupportNugetsVersion>7.0.0</UnitTestingSupportNugetsVersion>
29+
<UnitTestingSupportNugetsVersion>8.0.0</UnitTestingSupportNugetsVersion>
2930
</PropertyGroup>
3031

3132
<!--StyleCop-->
@@ -55,10 +56,10 @@
5556
<NugetCopyright>MIT License (Mateusz Soboń)</NugetCopyright>
5657

5758
<!--Version-->
58-
<NugetVersion>7.0.0</NugetVersion>
59-
<NugetAssemblyVersion>7.0.0.0</NugetAssemblyVersion>
60-
<NugetFileVersion>7.0.0.0</NugetFileVersion>
61-
<NugetPackageReleaseNotes>Updated to net7.0. Updated dependencies.</NugetPackageReleaseNotes>
59+
<NugetVersion>8.0.0</NugetVersion>
60+
<NugetAssemblyVersion>8.0.0.0</NugetAssemblyVersion>
61+
<NugetFileVersion>8.0.0.0</NugetFileVersion>
62+
<NugetPackageReleaseNotes>Updated to net8.0. Updated dependencies.</NugetPackageReleaseNotes>
6263

6364
<!--Repo url-->
6465
<NuGetPackageProjectUrl>https://github.com/NightAngell/SignalR_UnitTestingSupport</NuGetPackageProjectUrl>
@@ -72,7 +73,7 @@
7273
<NugetIsPackable>true</NugetIsPackable>
7374
<NuGetGeneratePackageOnBuild>false</NuGetGeneratePackageOnBuild>
7475
<NugetOutputType>Library</NugetOutputType>
75-
<IncludeSymbols>true</IncludeSymbols>
76+
<IncludeSymbols>true</IncludeSymbols>
7677
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
7778
</PropertyGroup>
7879
</Project>

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ This lib provide support objects and base classes for testing ```Hub, Hub<T>, IH
1414
2. net5 - 5.0.0
1515
3. net6.0 - 6.0.0
1616
4. net7.0 - 7.0.0
17+
5. net8.0 - 8.0.0
1718

1819
# How to install
1920
#### 1. Using Visual Studio Nuget Package Manager
@@ -25,15 +26,15 @@ SignalR.UnitTestingSupport.MSTest
2526
```
2627
#### 2. Using Packet Manager Console
2728
```
28-
Install-Package SignalR.UnitTestingSupport.NUnit -Version 7.0.0
29-
Install-Package SignalR.UnitTestingSupport.xUnit -Version 7.0.0
30-
Install-Package SignalR.UnitTestingSupport.MSTest -Version 7.0.0
29+
Install-Package SignalR.UnitTestingSupport.NUnit
30+
Install-Package SignalR.UnitTestingSupport.xUnit
31+
Install-Package SignalR.UnitTestingSupport.MSTest
3132
```
3233
#### 3. Using .Net CLI
3334
```
34-
dotnet add package SignalR.UnitTestingSupport.NUnit --version 7.0.0
35-
dotnet add package SignalR.UnitTestingSupport.xUnit --version 7.0.0
36-
dotnet add package SignalR.UnitTestingSupport.MSTest --version 7.0.0
35+
dotnet add package SignalR.UnitTestingSupport.NUnit
36+
dotnet add package SignalR.UnitTestingSupport.xUnit
37+
dotnet add package SignalR.UnitTestingSupport.MSTest
3738
```
3839
## Troubleshooting!
3940
Install ```NUnit3TestAdapter``` nuget for visual studio testing with NUnit in visual studio. https://www.nuget.org/packages/NUnit3TestAdapter/

SignalR_UnitTestingSupportCommon/Hubs/Internal/HubUnitTestsBaseCommon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace SignalR_UnitTestingSupportCommon.Hubs.Internal
1313
public abstract class HubUnitTestsBaseCommon : SignalRUnitTestingSupportCommon, IHubUnitTestsBaseCommon
1414
{
1515
/// <summary>
16-
/// Gets fake for Hub.Contex.Items
16+
/// Gets fake for Hub.Context.Items
1717
/// </summary>
1818
public Dictionary<object, object> ItemsFake { get; internal set; }
1919

TestsWithUnitTestingSupportXUnit/TestsWithUnitTestingSupportXUnit.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="$(EntityFrameworkCurrentVersion)" />
1313
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="$(MicrosoftTestSDKVersion)" />
1414

15-
<PackageReference Include="xunit" Version="2.4.2" />
16-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
15+
<PackageReference Include="xunit" Version="2.6.4" />
16+
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1919
</PackageReference>

0 commit comments

Comments
 (0)