I have a simple dotnet core class library with a single XUnit test method:
TestLib.csproj:
I've encountered this a couple of times and I always forget what's up. Most recently I had:
Packages for my test project:
I was seeing:
Unable to find C:\PATH\bin\Debug\netstandard2.0\testhost.dll. Please publish your test project and retry.
And all that I needed to do was add to my test project the missing nuget package: "Microsoft.NET.Test.SDK"
Everything was back to normal at this point.