Run from XUnitTestProject1 folder dotnet test --collect:"XPlat Code Coverage" With custom runsettings file dotnet test --collect:"XPlat Code Coverage" --settings runsettings.xml