Skip to content

How to install

Mateusz Soboń edited this page Apr 3, 2021 · 17 revisions

Which nuget version should I choose?

  1. netcoreapp (2.1, 2,2, 3.0, 3,1) - 2.0.0
  2. net5 - 5.0.0

How to install

1. Using Visual Studio Nuget Package Manager

If you dont know how install nuget via Visual Studio see this: https://www.youtube.com/watch?v=jX5HlrerIos

SignalR.UnitTestingSupport.NUnit
SignalR.UnitTestingSupport.xUnit
SignalR.UnitTestingSupport.MSTest

2. Using Packet Manager Console

Install-Package SignalR.UnitTestingSupport.NUnit -Version 5.0.0
Install-Package SignalR.UnitTestingSupport.xUnit -Version 5.0.0
Install-Package SignalR.UnitTestingSupport.MSTest -Version 5.0.0

3. Using .Net CLI

dotnet add package SignalR.UnitTestingSupport.NUnit --version 5.0.0
dotnet add package SignalR.UnitTestingSupport.xUnit --version 5.0.0
dotnet add package SignalR.UnitTestingSupport.MSTest --version 5.0.0

Troubleshooting!

Install NUnit3TestAdapter nuget for visual studio testing with NUnit in visual studio. https://www.nuget.org/packages/NUnit3TestAdapter/

Install xunit.runner.visualstudio nuget for visual studio testing with xUnit. https://www.nuget.org/packages/xunit.runner.visualstudio/

Install MSTest.TestAdapter nuget for visual studio testing with MSTest.
https://www.nuget.org/packages/MSTest.TestAdapter/

If your tests are not even detected, install Microsoft.Net.Test.Sdk nuget :)
https://www.nuget.org/packages/Microsoft.NET.Test.Sdk/

If you get NullReferenceException when you try testing with my lib see this.

Error after update for ASP.NET Core 3.0: Help with migration from ASP.NET Core 2.1 or 2.2 to 3.0

Clone this wiki locally