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