94 references to UnescapeAll
Microsoft.Build (75)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (1)
585
specificationsToFind.Add(EscapingUtilities.
UnescapeAll
(file));
BackEnd\Components\RequestBuilder\Lookup.cs (1)
221
errorMessages.Add(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("PropertyOutputOverridden", propertyName, EscapingUtilities.
UnescapeAll
(propertyValue), property.EvaluatedValue));
BackEnd\Components\RequestBuilder\TargetEntry.cs (2)
408
string dependencyTargetName = EscapingUtilities.
UnescapeAll
(escapedDependency);
722
string errorTargetName = EscapingUtilities.
UnescapeAll
(escapedErrorTarget);
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\Shared\BuildRequest.cs (1)
194
_targets.Add(EscapingUtilities.
UnescapeAll
(target));
Collections\PropertyDictionary.cs (2)
338
unescapedValue = EscapingUtilities.
UnescapeAll
(escapedValue);
539
yield return new(kvp.Key, EscapingUtilities.
UnescapeAll
(kvp.EscapedValue));
Construction\ProjectTargetElement.cs (2)
94
string unescapedValue = EscapingUtilities.
UnescapeAll
(GetAttributeValue(XMakeAttributes.name));
107
string unescapedValue = EscapingUtilities.
UnescapeAll
(value);
Construction\Solution\SolutionFile.cs (1)
1471
proj.TargetFrameworkMoniker = Shared.EscapingUtilities.
UnescapeAll
(targetFrameworkMoniker);
Construction\Solution\SolutionProjectGenerator.cs (1)
1214
ProjectInstance metaprojectInstance = new ProjectInstance(EscapingUtilities.
UnescapeAll
(GetMetaprojectName(project)), traversalProject, GetMetaprojectGlobalProperties(traversalProject));
Definition\BuiltInMetadata.cs (3)
56
return EscapingUtilities.
UnescapeAll
(GetMetadataValueEscaped(currentDirectory, evaluatedIncludeBeforeWildcardExpansionEscaped, evaluatedIncludeEscaped, definingProjectEscaped, name, ref fullPath));
107
string evaluatedIncludeBeforeWildcardExpansion = EscapingUtilities.
UnescapeAll
(evaluatedIncludeBeforeWildcardExpansionEscaped);
108
string evaluatedInclude = EscapingUtilities.
UnescapeAll
(evaluatedIncludeEscaped);
Definition\ProjectCollection.cs (1)
998
return EscapingUtilities.
UnescapeAll
(escapedString);
Definition\ProjectItem.cs (3)
208
{ return Link != null ? Link.EvaluatedInclude : EscapingUtilities.
UnescapeAll
(_evaluatedIncludeEscaped); }
378
{ return EscapingUtilities.
UnescapeAll
(_evaluatedIncludeBeforeWildcardExpansionEscaped); }
441
return Link != null ? Link.GetMetadataValue(name) : EscapingUtilities.
UnescapeAll
(((IItem)this).GetMetadataValueEscaped(name));
Definition\ProjectItemDefinition.cs (1)
139
return (escapedValue == null) ? null : EscapingUtilities.
UnescapeAll
(escapedValue);
Definition\ProjectMetadata.cs (1)
104
{ return EscapingUtilities.
UnescapeAll
(EvaluatedValueEscaped); }
Definition\ProjectProperty.cs (1)
89
{ return EscapingUtilities.
UnescapeAll
(EvaluatedValueEscapedInternal); }
Definition\ToolsetReader.cs (1)
602
propertyGroup.Set(ProjectPropertyInstance.Create(property.Name, EscapingUtilities.
UnescapeAll
(property.Value), true /* may be reserved */, false /* not immutable */));
Evaluation\Evaluator.cs (8)
663
initialTargets.Add(EscapingUtilities.
UnescapeAll
(initialTarget, trim: true));
955
SetBuiltInProperty(ReservedPropertyNames.projectDefaultTargets, EscapingUtilities.
UnescapeAll
(expanded));
961
string target = EscapingUtilities.
UnescapeAll
(temp[i], trim: true);
1061
string unescapedBeforeTarget = EscapingUtilities.
UnescapeAll
(beforeTarget);
1084
string unescapedAfterTarget = EscapingUtilities.
UnescapeAll
(afterTarget);
2018
FileUtilities.NormalizePath(EscapingUtilities.
UnescapeAll
(importExpressionEscapedItem));
2032
ProjectErrorUtilities.ThrowInvalidProject(importLocationInProject, "InvalidAttributeValueWithException", EscapingUtilities.
UnescapeAll
(importExpressionEscapedItem), XMakeAttributes.project, XMakeElements.import, ex.Message);
2062
string importFileUnescaped = EscapingUtilities.
UnescapeAll
(importFileEscaped);
Evaluation\EvaluatorMetadataTable.cs (1)
135
return EscapingUtilities.
UnescapeAll
(EvaluatedValueEscaped);
Evaluation\Expander.cs (9)
479
return (result == null) ? null : EscapingUtilities.
UnescapeAll
(result);
1688
registryKeyName = EscapingUtilities.
UnescapeAll
(registryKeyName);
1692
valueName = EscapingUtilities.
UnescapeAll
(valueName);
2404
string unescapedPath = EscapingUtilities.
UnescapeAll
(item.Key);
2453
string unescapedPath = EscapingUtilities.
UnescapeAll
(item.Key);
2481
string unescapedPath = EscapingUtilities.
UnescapeAll
(item.Key);
2558
string unescapedPath = EscapingUtilities.
UnescapeAll
(item.Key);
3483
objectInstance = EscapingUtilities.
UnescapeAll
(objectInstanceString);
3511
args[n] = EscapingUtilities.
UnescapeAll
(argumentValue);
Evaluation\IntrinsicFunctions.cs (1)
137
return EscapingUtilities.
UnescapeAll
(escaped);
Evaluation\ItemSpec.cs (4)
93
return ReferencedItems.Select(v => EscapingUtilities.
UnescapeAll
(v.ItemAsValueFragment.TextFragment));
246
var filespecUnescaped = EscapingUtilities.
UnescapeAll
(splitEscaped);
487
return Enumerable.Repeat(EscapingUtilities.
UnescapeAll
(TextFragment), 1);
497
return MSBuildGlob.Parse(ProjectDirectory, EscapingUtilities.
UnescapeAll
(TextFragment));
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
86
if (excludeTester?.Value(EscapingUtilities.
UnescapeAll
(value)) != true)
Evaluation\ProjectParser.cs (1)
578
string targetName = EscapingUtilities.
UnescapeAll
(ProjectXmlUtilities.GetAttributeValue(element, XMakeAttributes.name));
FileUtilities.cs (1)
759
fileSpec = FixFilePath(EscapingUtilities.
UnescapeAll
(fileSpec));
Instance\ProjectItemInstance.cs (3)
898
return EscapingUtilities.
UnescapeAll
(_includeEscaped);
975
get { return EscapingUtilities.
UnescapeAll
(_includeEscaped); }
1309
return EscapingUtilities.
UnescapeAll
(GetMetadataEscaped(metadataName));
Instance\ProjectMetadataInstance.cs (1)
122
return EscapingUtilities.
UnescapeAll
(_escapedValue);
Instance\ProjectPropertyInstance.cs (1)
70
return EscapingUtilities.
UnescapeAll
(_escapedValue);
Logging\BaseConsoleLogger.cs (1)
541
WriteLinePretty(EscapingUtilities.
UnescapeAll
((string)prop.Value));
Logging\ParallelLogger\ParallelConsoleLogger.cs (1)
763
string propertyString = String.Format(CultureInfo.CurrentCulture, "{0} = {1}", prop.Key, EscapingUtilities.
UnescapeAll
((string)(prop.Value)));
Modifiers.cs (3)
508
string unescapedItemSpec = EscapingUtilities.
UnescapeAll
(itemSpec);
526
string unescapedItemSpec = EscapingUtilities.
UnescapeAll
(itemSpec);
542
string unescapedItemSpec = EscapingUtilities.
UnescapeAll
(itemSpec);
TaskParameter.cs (5)
775
return (_escapedItemSpec == null) ? String.Empty : EscapingUtilities.
UnescapeAll
(_escapedItemSpec);
838
return EscapingUtilities.
UnescapeAll
(metadataValue);
930
clonedMetadata.Add(metadatum.Key, EscapingUtilities.
UnescapeAll
(metadatum.Value));
1013
var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.
UnescapeAll
(kvp.Value));
1029
var unescaped = new KeyValuePair<string, string>(kvp.Key, EscapingUtilities.
UnescapeAll
(kvp.Value));
Utilities\EngineFileUtilities.cs (4)
203
fileList = [returnEscaped ? filespecEscaped : EscapingUtilities.
UnescapeAll
(filespecEscaped)];
213
var directoryUnescaped = EscapingUtilities.
UnescapeAll
(directoryEscaped);
214
var filespecUnescaped = EscapingUtilities.
UnescapeAll
(filespecEscaped);
215
var excludeSpecsUnescaped = excludeSpecsEscaped?.Where(IsValidExclude).Select(i => EscapingUtilities.
UnescapeAll
(i)).ToList();
Utilities\FileSpecMatchTester.cs (1)
41
string unescapedFileSpec = EscapingUtilities.
UnescapeAll
(fileSpec);
Microsoft.Build.Engine.UnitTests (19)
EscapingUtilities_Tests.cs (19)
18
Assert.Equal("", EscapingUtilities.
UnescapeAll
(""));
19
Assert.Equal("foo", EscapingUtilities.
UnescapeAll
("foo"));
20
Assert.Equal("foo space", EscapingUtilities.
UnescapeAll
("foo%20space"));
21
Assert.Equal("foo2;", EscapingUtilities.
UnescapeAll
("foo2%3B"));
22
Assert.Equal(";foo3", EscapingUtilities.
UnescapeAll
("%3bfoo3"));
23
Assert.Equal(";", EscapingUtilities.
UnescapeAll
("%3b"));
24
Assert.Equal(";;;;;", EscapingUtilities.
UnescapeAll
("%3b%3B;%3b%3B"));
25
Assert.Equal("%3B", EscapingUtilities.
UnescapeAll
("%253B"));
26
Assert.Equal("===%ZZ %%%===", EscapingUtilities.
UnescapeAll
("===%ZZ%20%%%==="));
27
Assert.Equal("hello; escaping% how( are) you?", EscapingUtilities.
UnescapeAll
("hello%3B escaping%25 how%28 are%29 you%3f"));
29
Assert.Equal("%*?*%*", EscapingUtilities.
UnescapeAll
("%25*?*%25*"));
30
Assert.Equal("%*?*%*", EscapingUtilities.
UnescapeAll
("%25%2a%3f%2a%25%2a"));
32
Assert.Equal("*Star*craft or *War*cr@ft??", EscapingUtilities.
UnescapeAll
("%2aStar%2Acraft%20or %2aWar%2Acr%40ft%3f%3F"));
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)));