Add the following to a NET Core project.

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

Name:  NoPath.jpg
Views: 334
Size:  71.2 KB