I have a simple dotnet core class library with a single XUnit test method:
TestLib.csproj:
same issue i faced for Nunit (.net core 3.1) project . I was using Microsoft.NET.Test.SDK v16.6.1, I downgraded the version to 15.9.0. And it start working