I believe TeamCity supported multiple formats, but last time I touched it was 2 years ago, can’t be too sure.
I’m running dotnetcore, so have the option of a few types I believe.
dotnet test --test-adapter-path:. --logger:“nunit;LogFilePath=test-result.xml”