[Feature Request]: Terminal Logger output display should use relative paths for directories in the same 'repo root' #9800
Labels
Area: Terminal Logger
Problems with the livelogger/fancylogger/terminallogger -tl functionality.
Feature Request
triaged
Summary
I have a repo where I'm using the SDK Artifacts layout, which puts outputs in a layout like
When I publish one of these projects from its src directory, the output path link is fully-qualified:
Since this location is in the same 'repo' I'd prefer to see this path using relative pathing:
../../artifacts/publish/msbuild-versioning-sample/release_osx-x64
Background and Motivation
We already use relative pathing for directories under the current working directory, and it seems natural to me to use relative paths for all repo-local locations. The hard part might be deciding what is repo-local, since MSBuild doesn't really have a core concept of a repo root. Maybe Sourcebuild can be of use here, since it's properties can tell us a repo root?
Proposed Feature
If the
SourceRoot
Item is present (which it should be after theInitializeSourceControlInformation
Target has finished) then use it as a basis for computing relative paths if the project isn't a direct ancestor of the path being made relative to display the outputs.Alternative Designs
No response
The text was updated successfully, but these errors were encountered: