I have a simple dotnet core class library with a single XUnit test method:
TestLib.csproj:
Had to add Microsoft.TestPlatform.TestHost to get testhost.dll. I found that in this answer https://github.com/dotnet/sdk/issues/7171#issuecomment-261506546
Microsoft.TestPlatform.TestHost
testhost.dll