This fixes a bug that we write out path with forward slashes even on windows. So the path can't be used as-is to open the result file in UI tools.
Commit migrated from https://github.com/dotnet/core-setup/commit/
f410793e1673bfbedb288f4cdcc480bddc5af055
<PropertyGroup>
<TestArgs>--no-restore $(MSBuildPassThroughPropertyList)</TestArgs>
<IsCrossArch Condition="'$(TargetArchitecture)' == 'arm' or '$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'armel'">true</IsCrossArch>
- <TestResultsXml>$(TestsOutputDir)$(TestProjectFilename)-testResults.trx</TestResultsXml>
+ <TestResultsXml>$(SystemPathTestsOutputDir)$(TestProjectFilename)-testResults.trx</TestResultsXml>
</PropertyGroup>
<Exec Command="$(DotnetToolCommand) test $(TestArgs) --logger "trx;LogFileName=$(TestResultsXml)""
WorkingDirectory="$(TestWorkingDirectory)"