15 references to Escape
Microsoft.Build.Utilities.Core (5)
FileUtilities.cs (1)
762string fullPath = EscapingUtilities.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
TaskItem.cs (4)
132_itemSpec = EscapingUtilities.Escape(sourceItem.ItemSpec); 349destinationItem.SetMetadata(entry.Key, EscapingUtilities.Escape(entry.Value)); 364destinationItem.SetMetadata("OriginalItemSpec", EscapingUtilities.Escape(ItemSpec)); 459void ITaskItem2.SetMetadataValueLiteral(string metadataName, string metadataValue) => SetMetadata(metadataName, EscapingUtilities.Escape(metadataValue));
Microsoft.Build.Utilities.UnitTests (10)
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)));