You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But while TaskItems usually represent files on disk, they don't necessarily do so, and if they don't and also contain backslashes this will corrupt them. It should be configurable.
I suggest the name of the input parameter to be bool treatAsFilePath = true and document as such that MSBuild will by default treat it as a file path and potentially "fix" it up and/or create a full path from it.
Summary
This code unconditionally calls
FixFilePath
:msbuild/src/Utilities/TaskItem.cs
Lines 80 to 86 in 4c6a5a9
But while
TaskItem
s usually represent files on disk, they don't necessarily do so, and if they don't and also contain backslashes this will corrupt them. It should be configurable.Background and Motivation
See analysis by @JoeRobich in dotnet/roslyn#72014 (comment).
Proposed Feature
Alternative Designs
No response
The text was updated successfully, but these errors were encountered: