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