'JetBrains Rider unit tests inconclusive due to: "Could not load type from assembly"

Rider's unit tests were working just fine, until I updated to VS 2022. Now, whatever test I try and run, the result is immediately "Inconclusive", and the log that Rider generates for each test sessions shows the following:

19:03:58.028 |W| TestRunner: Discoverer [MSTest][Discovery][C:\projects\eng\src1\bin\Tests\Debug\net6.0\blabla.UnitTests.dll]
Failed to discover tests from assembly C:\projects\eng\src1\bin\Tests\Debug\net6.0\blabla.dll.
**Reason:Could not load type 'Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities.AssemblyHelper' from assembly 'Microsoft.VisualStudio.TestPlatform.ObjectModel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.** 

And it's always with the same assembly. I should note that in VS 2022 the tests work as normal.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source