66 references to EscapingUtilities
Microsoft.Build.Tasks.Core (22)
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));
CreateItem.cs (2)
164EscapingUtilities.UnescapeAll(i.ItemSpec), 174EscapingUtilities.UnescapeAll(i.ItemSpec),
Exec.cs (1)
401_nonEmptyOutput.Add(new TaskItem(EscapingUtilities.Escape(trimmedTextLine)));
FileIO\ReadLinesFromFile.cs (1)
61nonEmptyLines.Add(new TaskItem(EscapingUtilities.Escape(trimmedTextLine)));
FileUtilities.cs (2)
759fileSpec = FixFilePath(EscapingUtilities.UnescapeAll(fileSpec)); 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);
Modifiers.cs (3)
508string unescapedItemSpec = EscapingUtilities.UnescapeAll(itemSpec); 526string unescapedItemSpec = EscapingUtilities.UnescapeAll(itemSpec); 542string unescapedItemSpec = EscapingUtilities.UnescapeAll(itemSpec);
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 (44)
Copy_Tests.cs (1)
1920string sourceFile = EscapingUtilities.UnescapeAll(sourceFileEscaped);
EscapingUtilities_Tests.cs (42)
18Assert.Equal("", EscapingUtilities.UnescapeAll("")); 19Assert.Equal("foo", EscapingUtilities.UnescapeAll("foo")); 20Assert.Equal("foo space", EscapingUtilities.UnescapeAll("foo%20space")); 21Assert.Equal("foo2;", EscapingUtilities.UnescapeAll("foo2%3B")); 22Assert.Equal(";foo3", EscapingUtilities.UnescapeAll("%3bfoo3")); 23Assert.Equal(";", EscapingUtilities.UnescapeAll("%3b")); 24Assert.Equal(";;;;;", EscapingUtilities.UnescapeAll("%3b%3B;%3b%3B")); 25Assert.Equal("%3B", EscapingUtilities.UnescapeAll("%253B")); 26Assert.Equal("===%ZZ %%%===", EscapingUtilities.UnescapeAll("===%ZZ%20%%%===")); 27Assert.Equal("hello; escaping% how( are) you?", EscapingUtilities.UnescapeAll("hello%3B escaping%25 how%28 are%29 you%3f")); 29Assert.Equal("%*?*%*", EscapingUtilities.UnescapeAll("%25*?*%25*")); 30Assert.Equal("%*?*%*", EscapingUtilities.UnescapeAll("%25%2a%3f%2a%25%2a")); 32Assert.Equal("*Star*craft or *War*cr@ft??", EscapingUtilities.UnescapeAll("%2aStar%2Acraft%20or %2aWar%2Acr%40ft%3f%3F")); 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))); 79Assert.False(EscapingUtilities.ContainsEscapedWildcards("NoStarOrQMark")); 80Assert.False(EscapingUtilities.ContainsEscapedWildcards("%")); 81Assert.False(EscapingUtilities.ContainsEscapedWildcards("%%")); 82Assert.False(EscapingUtilities.ContainsEscapedWildcards("%2")); 83Assert.False(EscapingUtilities.ContainsEscapedWildcards("%4")); 84Assert.False(EscapingUtilities.ContainsEscapedWildcards("%3A")); 85Assert.False(EscapingUtilities.ContainsEscapedWildcards("%2B")); 86Assert.True(EscapingUtilities.ContainsEscapedWildcards("%2a")); 87Assert.True(EscapingUtilities.ContainsEscapedWildcards("%2A")); 88Assert.True(EscapingUtilities.ContainsEscapedWildcards("%3F")); 89Assert.True(EscapingUtilities.ContainsEscapedWildcards("%3f")); 90Assert.True(EscapingUtilities.ContainsEscapedWildcards("%%3f")); 91Assert.True(EscapingUtilities.ContainsEscapedWildcards("%3%3f"));
FindUnderPath_Tests.cs (1)
78t.Files = new ITaskItem[] { new TaskItem(EscapingUtilities.Escape(testFile.Name)),