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