dotnet / dotnet/msbuild

Should File IO tasks report in logs absolute paths of items they operate on?

Open
#12,990 1 comment 0 reactions 0 assignees View on GitHub
Area: Tasks triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Summary

Currently in most places tasks log relative paths, respectively paths that are inputted when reporting messages/warnings/errors (but not all, there is some absolute path logging in Copy task)

### Background and Motivation

https://github.com/dotnet/msbuild/pull/12914 absolutizes paths that the tasks are working with internally
we can easily report these absolute paths which may aid with debugging as customers would not need to correlate the task origin + the logged relative path, but it would be clearer from the message what happened.

### Proposed Feature

Expand the places where we log absolute path in Tasks since we compute it anyway in the task, so we can also log it.

### Alternative Designs

keep as is

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.