62 references to FixFilePath
Microsoft.Build (41)
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (7)
981string oldestOutput = EscapingUtilities.UnescapeAll(FileUtilities.FixFilePath(outputs[0].ToString())); 999string arbitraryInput = EscapingUtilities.UnescapeAll(FileUtilities.FixFilePath(inputs[0].ToString())); 1007string candidateOutput = EscapingUtilities.UnescapeAll(FileUtilities.FixFilePath(outputs[i].ToString())); 1025EscapingUtilities.UnescapeAll(FileUtilities.FixFilePath(inputs[0].ToString())); 1042string unescapedInput = EscapingUtilities.UnescapeAll(FileUtilities.FixFilePath(input.ToString())); 1130input = EscapingUtilities.UnescapeAll(FileUtilities.FixFilePath(input)); 1131output = EscapingUtilities.UnescapeAll(FileUtilities.FixFilePath(output));
BackEnd\Components\SdkResolution\SdkResolverManifest.cs (1)
82manifest.Path = FileUtilities.FixFilePath(manifest.Path);
Construction\ProjectImportElement.cs (2)
55get => FileUtilities.FixFilePath(GetAttributeValue(XMakeAttributes.project)); 74get => FileUtilities.FixFilePath(GetAttributeValue(XMakeAttributes.sdk));
Construction\ProjectRootElement.cs (1)
1229ProjectUsingTaskElement usingTask = CreateUsingTaskElement(name, FileUtilities.FixFilePath(assemblyFile), assemblyName);
Construction\ProjectUsingTaskElement.cs (3)
51get => FileUtilities.FixFilePath( 58value = FileUtilities.FixFilePath(value); 252usingTask.AssemblyFile = FileUtilities.FixFilePath(assemblyFile);
Construction\Solution\SolutionFile.cs (3)
273return _solutionFilter?.Contains(FileUtilities.FixFilePath(projectFile)) != false; 630_solutionFilter.Add(FileUtilities.FixFilePath(project.GetString())); 889projectPaths.Add(FileUtilities.FixFilePath(project.RelativePath));
Evaluation\Conditionals\FunctionCallExpressionNode.cs (2)
123argument = FileUtilities.FixFilePath(argument); 157argument = FileUtilities.FixFilePath(argument);
Evaluation\Expander.cs (1)
3508argumentValue = FileUtilities.FixFilePath(argumentValue);
FileMatcher.cs (2)
224path = FileUtilities.FixFilePath(path); 588filespec = FileUtilities.FixFilePath(filespec);
FileUtilities.cs (14)
221fileSpec = FixFilePath(fileSpec); 245return FixFilePath(path.Substring(start, stop - start)); 259return FixFilePath(start < stop && IsSlash(path[stop - 1]) ? 269path = FixFilePath(path); 306path = FixFilePath(path); 384return FixFilePath(fullPath.Substring(0, i)); 466return FixFilePath(fullPath); 695string directory = Path.GetDirectoryName(FixFilePath(fileSpec)); 759fileSpec = FixFilePath(EscapingUtilities.UnescapeAll(fileSpec)); 861File.Delete(FixFilePath(path)); 888path = FixFilePath(path); 1155return FixFilePath(path); 1206return FixFilePath(path); 1230return Path.IsPathRooted(FixFilePath(path));
Instance\ProjectItemInstance.cs (2)
839_includeEscaped = FileUtilities.FixFilePath(includeEscaped); 840_includeBeforeWildcardExpansionEscaped = FileUtilities.FixFilePath(includeBeforeWildcardExpansionEscaped);
Instance\TaskRegistry.cs (1)
366assemblyFile = FileUtilities.FixFilePath(assemblyFile);
Logging\FileLogger.cs (1)
202_logFileName = FileUtilities.FixFilePath(parameterValue);
Modifiers.cs (1)
437modifiedItemSpec = Path.GetFileNameWithoutExtension(FixFilePath(itemSpec));
Microsoft.Build.Engine.UnitTests (21)
FileMatcher_Tests.cs (5)
1851expectedFixedDirectoryPart = FileUtilities.FixFilePath(expectedFixedDirectoryPart); 1852expectedWildcardDirectoryPart = FileUtilities.FixFilePath(expectedWildcardDirectoryPart); 2486expectedFixedDirectoryPart = FileUtilities.FixFilePath(expectedFixedDirectoryPart); 2487expectedWildcardDirectoryPart = FileUtilities.FixFilePath(expectedWildcardDirectoryPart); 2488expectedFilenamePart = FileUtilities.FixFilePath(expectedFilenamePart);
FileUtilities_Tests.cs (16)
249Assert.Equal(FileUtilities.FixFilePath(@"\"), FileUtilities.GetDirectory(@"\")); 250Assert.Equal(FileUtilities.FixFilePath(@"\"), FileUtilities.GetDirectory(@"\foo")); 251Assert.Equal(FileUtilities.FixFilePath(@"..\"), FileUtilities.GetDirectory(@"..\foo")); 252Assert.Equal(FileUtilities.FixFilePath(@"\foo\"), FileUtilities.GetDirectory(@"\foo\")); 253Assert.Equal(FileUtilities.FixFilePath(@"\\server\share"), FileUtilities.GetDirectory(@"\\server\share")); 254Assert.Equal(FileUtilities.FixFilePath(@"\\server\share\"), FileUtilities.GetDirectory(@"\\server\share\")); 255Assert.Equal(FileUtilities.FixFilePath(@"\\server\share\"), FileUtilities.GetDirectory(@"\\server\share\file")); 256Assert.Equal(FileUtilities.FixFilePath(@"\\server\share\directory\"), FileUtilities.GetDirectory(@"\\server\share\directory\")); 257Assert.Equal(FileUtilities.FixFilePath(@"foo\"), FileUtilities.GetDirectory(@"foo\bar")); 258Assert.Equal(FileUtilities.FixFilePath(@"\foo\bar\"), FileUtilities.GetDirectory(@"\foo\bar\")); 325Assert.Equal(FileUtilities.FixFilePath(@"foo\bar\"), FileUtilities.EnsureTrailingSlash(@"foo\bar")); // "test 1" 326Assert.Equal(FileUtilities.FixFilePath(@"foo/bar\"), FileUtilities.EnsureTrailingSlash(@"foo/bar")); // "test 2" 329Assert.Equal(FileUtilities.FixFilePath(@"foo/bar/"), FileUtilities.EnsureTrailingSlash(@"foo/bar/")); // test 3" 330Assert.Equal(FileUtilities.FixFilePath(@"foo\bar\"), FileUtilities.EnsureTrailingSlash(@"foo\bar\")); // test 4" 331Assert.Equal(FileUtilities.FixFilePath(@"foo/bar\"), FileUtilities.EnsureTrailingSlash(@"foo/bar\")); // test 5" 332Assert.Equal(FileUtilities.FixFilePath(@"foo\bar/"), FileUtilities.EnsureTrailingSlash(@"foo\bar/")); // "test 5"