I have a simple dotnet core class library with a single XUnit test method:
TestLib.csproj:
Ran into this error, the root cause was the tests were hitting the maximum length for a Windows path (MAX_PATH), which is defined as 260 characters.