I have a simple dotnet core class library with a single XUnit test method:
TestLib.csproj:
I had created a class library and tried to use the XUnit NuGet package in it.
What I should have done was created an XUnit project using this command: dotnet new xunit -n TestProject
dotnet new xunit -n TestProject
I found this helpful page.