Unit Test Won’t Run

What happens when you get this error in Visual Studio 2022 for a Solution that worked for Visual Studio 2017?

{Project Name} 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. ]

If you have tried eveything else, try getting updates for the testing packges. I updated/added these NuGet packages to the latest in the mix and all went green.

  • NUnit.3.13.3
  • NUnit3TestAdapter.4.3.0-alpha-net7.4
  • Microsoft.NET.Test.Sdk.17.2.0
  • Microsoft.CodeCoverage.17.2.0
  • MSTest.TestAdapter.2.2.10