10 references to MaybeAdjustFilePath
Microsoft.Build (8)
Evaluation\Expander.cs (6)
179
_builder.Append(FileUtilities.
MaybeAdjustFilePath
(obj.ToString()));
218
return (_firstObject is string stringValue) ? FileUtilities.
MaybeAdjustFilePath
(stringValue) : _firstObject;
250
_builder.Append(FileUtilities.
MaybeAdjustFilePath
(_firstObject.ToString()));
259
_builder.Append(FileUtilities.
MaybeAdjustFilePath
(_firstSpan.ToString()));
501
result = FileUtilities.
MaybeAdjustFilePath
(result);
569
expression = FileUtilities.
MaybeAdjustFilePath
(expression);
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
215
itemContext.OperationItem.SetMetadata(metadataElement, FileUtilities.
MaybeAdjustFilePath
(evaluatedValue, metadataElement.ContainingProject.DirectoryPath));
252
evaluatedValue = FileUtilities.
MaybeAdjustFilePath
(evaluatedValue, metadataElement.ContainingProject.DirectoryPath);
Microsoft.Build.Engine.UnitTests (2)
FileUtilities_Tests.cs (2)
944
Assert.Equal("second\\file.txt", FileUtilities.
MaybeAdjustFilePath
("second\\file.txt"));
947
Assert.Equal("second/file.txt", FileUtilities.
MaybeAdjustFilePath
("second\\file.txt", firstDirectory));