I have a simple dotnet core class library with a single XUnit test method:
TestLib.csproj:
Fixed it by installing xunit.runner.visualstudio.
xunit.runner.visualstudio