79794728

Date: 2025-10-20 08:53:41
Score: 1.5
Natty:
Report link

Upgrading to
<PackageReference Include="MSTest.TestAdapter" Version="4.1.0-preview.25514.12" /> <PackageReference Include="MSTest.TestFramework" Version="4.1.0-preview.25514.12" />
fixed the issue as @Youssef13 suggested above.

I also had to change from Sdk="MSTest.Sdk/x.y.z" to Sdk="Microsoft.NET.Sdk" since the first one seems to overwrite packages even if and update element is added to the project file:
<ItemGroup> <PackageReference Update="MSTest.TestAdapter" Version="4.1.0-preview.25514.12" /> </ItemGroup>
That behavior is a bit unpredictable but not related to this issue.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Youssef13
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mattias Ström