I have a simple dotnet core class library with a single XUnit test method:
TestLib.csproj:
This could also be caused by inadvertently trying to run a non-test project, this usually happens when your test files filter is too wide.