Search code examples
c#visual-studiomstest

Visual Studio 15.8.1 not running MS unit tests


When I updated Visual Studio to the latest version, 1 of my test projects stopped running tests and outputted this message:

Test project {} does not reference any .NET NuGet adapter. Test discovery or execution might not work for this project. It is recommended to reference NuGet test adapters in each test project in the solution.

UPDATED: I was using MS Test as opposed to any other test frameworks like Nunit or Xunit.


Solution

  • I had to add the following Nuget packages:

    MSTest.TestAdapter
    MSTest.TestFramework
    Microsoft.NET.Test.Sdk
    

    Visual Studio release notes