26 references to Escape
Microsoft.Build.Tasks.Core (15)
AssignProjectConfiguration.cs (1)
226
projectRef.SetMetadata("GlobalPropertiesToRemove", EscapingUtilities.
Escape
(globalPropertiesToRemove + "Configuration;Platform"));
AssignTargetPath.cs (1)
122
AssignedFiles[i].SetMetadata(ItemMetadataNames.targetPath, EscapingUtilities.
Escape
(targetPath));
CombineTargetFrameworkInfoProperties.cs (1)
49
new("TargetFramework", new XAttribute("Name", EscapingUtilities.
Escape
(RootElementName))) :
ConvertToAbsolutePath.cs (1)
64
path.ItemSpec = EscapingUtilities.
Escape
(path.GetMetadata("FullPath"));
Copy.cs (3)
740
DestinationFiles[i] = new TaskItem(EscapingUtilities.
Escape
(destinationFile));
782
var item = new TaskItem(EscapingUtilities.
Escape
(sourceFile));
786
item = new TaskItem(EscapingUtilities.
Escape
(destinationFile));
Exec.cs (1)
398
_nonEmptyOutput.Add(new TaskItem(EscapingUtilities.
Escape
(trimmedTextLine)));
FileIO\ReadLinesFromFile.cs (1)
61
nonEmptyLines.Add(new TaskItem(EscapingUtilities.
Escape
(trimmedTextLine)));
FileUtilities.cs (1)
762
string fullPath = EscapingUtilities.
Escape
(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
GenerateResource.cs (1)
2706
string escapedOutputFile = EscapingUtilities.
Escape
(currentOutputFile);
ListOperators\FindUnderPath.cs (1)
100
item.ItemSpec = EscapingUtilities.
Escape
(fullPath);
PropertyParser.cs (2)
107
string propertyValue = EscapingUtilities.
Escape
(propertyNameValueString.Substring(indexOfEqualsSign + 1).Trim());
150
string propertyValue = EscapingUtilities.
Escape
(propertyNameValueString.Trim());
XmlPeek.cs (1)
153
Result[i++] = new TaskItem(EscapingUtilities.
Escape
(item));
Microsoft.Build.Tasks.UnitTests (11)
EscapingUtilities_Tests.cs (10)
40
Assert.Equal("%2a", EscapingUtilities.
Escape
("*"));
41
Assert.Equal("%3f", EscapingUtilities.
Escape
("?"));
42
Assert.Equal("#%2a%3f%2a#%2a", EscapingUtilities.
Escape
("#*?*#*"));
43
Assert.Equal("%25%2a%3f%2a%25%2a", EscapingUtilities.
Escape
("%*?*%*"));
52
Assert.Equal(text, EscapingUtilities.UnescapeAll(EscapingUtilities.
Escape
(text)));
55
Assert.Equal(text, EscapingUtilities.UnescapeAll(EscapingUtilities.
Escape
(text)));
58
Assert.Equal(text, EscapingUtilities.UnescapeAll(EscapingUtilities.
Escape
(text)));
67
Assert.Equal(text, EscapingUtilities.
Escape
(EscapingUtilities.UnescapeAll(text)));
70
Assert.Equal(text, EscapingUtilities.
Escape
(EscapingUtilities.UnescapeAll(text)));
73
Assert.Equal(text, EscapingUtilities.
Escape
(EscapingUtilities.UnescapeAll(text)));
FindUnderPath_Tests.cs (1)
78
t.Files = new ITaskItem[] { new TaskItem(EscapingUtilities.
Escape
(testFile.Name)),