11 references to MaybeAdjustFilePath
Microsoft.Build (9)
Construction\Solution\ProjectInSolution.cs (1)
165_relativePath = FileUtilities.MaybeAdjustFilePath(value, ParentSolution.SolutionFileDirectory);
Evaluation\Expander.cs (6)
181_builder.Append(FileUtilities.MaybeAdjustFilePath(obj.ToString())); 220return (_firstObject is string stringValue) ? FileUtilities.MaybeAdjustFilePath(stringValue) : _firstObject; 252_builder.Append(FileUtilities.MaybeAdjustFilePath(_firstObject.ToString())); 261_builder.Append(FileUtilities.MaybeAdjustFilePath(_firstSpan.ToString())); 503result = FileUtilities.MaybeAdjustFilePath(result); 571expression = 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));