Add the following to a NET Core project.
Results, top section as a normal console app, bottom with the above in place.Code:<PropertyGroup Label="Normalise stack trace file locations"> <PathMap>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)'))=./</PathMap> </PropertyGroup>