215 references to EscapingUtilities
Microsoft.Build (166)
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));
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (7)
1389
string parameterLocationEscaped =
EscapingUtilities
.EscapeWithCaching(parameterLocation.File);
1413
newItem = new ProjectItemInstance(_projectInstance, outputTargetName,
EscapingUtilities
.Escape(output.ItemSpec), parameterLocationEscaped);
1421
yield return new KeyValuePair<string, string>((string)de.Key,
EscapingUtilities
.Escape((string)de.Value));
1469
joinedOutputs.Append(
EscapingUtilities
.Escape(output.ItemSpec));
1521
_batchBucket.Lookup.AddNewItem(new ProjectItemInstance(_projectInstance, outputTargetName,
EscapingUtilities
.Escape(output),
EscapingUtilities
.Escape(parameterLocation.File)));
1557
joinedOutputs.Append(
EscapingUtilities
.Escape(output));
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 (43)
312
string escapedSolutionConfigurationContents =
EscapingUtilities
.Escape(solutionConfigurationContents.ToString());
330
text =
EscapingUtilities
.Escape(text);
338
task.SetParameter("Code",
EscapingUtilities
.Escape(code));
343
task.SetParameter("HelpKeyword",
EscapingUtilities
.Escape(helpKeyword));
381
return
EscapingUtilities
.Escape(fullPathToProject + ".metaproj");
511
msbuildTask.SetParameter("Projects",
EscapingUtilities
.Escape(projectPath));
521
EscapingUtilities
.Escape(configurationName),
522
EscapingUtilities
.Escape(platformName));
589
text =
EscapingUtilities
.Escape(text);
597
task.SetParameter("Code",
EscapingUtilities
.Escape(code));
602
task.SetParameter("HelpKeyword",
EscapingUtilities
.Escape(helpKeyword));
620
EscapingUtilities
.Escape(configuration.ConfigurationName),
621
EscapingUtilities
.Escape(configuration.PlatformName));
951
string escapedSolutionFile =
EscapingUtilities
.Escape(Path.GetFileName(_solutionFile.FullPath));
952
string escapedSolutionDirectory =
EscapingUtilities
.Escape(_solutionFile.SolutionFileDirectory);
1062
item = projectInstance.AddItem("ProjectReference",
EscapingUtilities
.Escape(projectToAdd.AbsolutePath), null);
1214
ProjectInstance metaprojectInstance = new ProjectInstance(
EscapingUtilities
.UnescapeAll(GetMetaprojectName(project)), traversalProject, GetMetaprojectGlobalProperties(traversalProject));
1347
AddProjectBuildTask(traversalProject, projectConfiguration, target, targetName,
EscapingUtilities
.Escape(project.AbsolutePath), String.Empty, outputItem);
1462
conditionDescribingValidConfigurations.AppendFormat(CultureInfo.InvariantCulture, "('$(AspNetConfiguration)' == '{0}')",
EscapingUtilities
.Escape(configurationName));
1678
if (!traversalProject.EvaluateCondition(String.Format(CultureInfo.InvariantCulture, " '$(AspNetConfiguration)' == '{0}' ",
EscapingUtilities
.Escape(configurationName))))
1685
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetVirtualPath"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetVirtualPath));
1686
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetPhysicalPath"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetPhysicalPath));
1687
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetTargetPath"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetTargetPath));
1688
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetForce"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetForce));
1689
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetUpdateable"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetUpdateable));
1690
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetDebug"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetDebug));
1691
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetKeyFile"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetKeyFile));
1692
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetKeyContainer"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetKeyContainer));
1693
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetDelaySign"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetDelaySign));
1694
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetAPTCA"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetAPTCA));
1695
metaprojectInstance.SetProperty(GenerateSafePropertyName(project, "AspNetFixedNames"),
EscapingUtilities
.Escape(aspNetCompilerParameters.aspNetFixedNames));
1743
string publishWebsitePath =
EscapingUtilities
.Escape(WebProjectOverrideFolder) + Path.DirectorySeparatorChar +
EscapingUtilities
.Escape(lastFolderInPhysicalPath) + Path.DirectorySeparatorChar;
2048
AddProjectBuildTask(traversalProject, projectConfiguration, targetElement, targetToBuild, "@(ProjectReference)", "'%(ProjectReference.Identity)' == '" +
EscapingUtilities
.Escape(project.AbsolutePath) + "'", outputItemName);
2068
properties[property.Item1] =
EscapingUtilities
.Escape(traversalProject.GetPropertyValue(property.Item1));
2072
properties[property.Item1] =
EscapingUtilities
.Escape(property.Item2);
2229
configurationDefaultingPropertyGroup.AddProperty("Configuration",
EscapingUtilities
.Escape(_solutionFile.GetDefaultConfigurationName()));
2235
platformDefaultingPropertyGroup.AddProperty("Platform",
EscapingUtilities
.Escape(_solutionFile.GetDefaultPlatformName()));
2280
globalProperties.AddProperty("SolutionDir",
EscapingUtilities
.Escape(directoryName));
2281
globalProperties.AddProperty("SolutionExt",
EscapingUtilities
.Escape(Path.GetExtension(_solutionFile.FullPath)));
2282
globalProperties.AddProperty("SolutionFileName",
EscapingUtilities
.Escape(Path.GetFileName(_solutionFile.FullPath)));
2283
globalProperties.AddProperty("SolutionName",
EscapingUtilities
.Escape(Path.GetFileNameWithoutExtension(_solutionFile.FullPath)));
2285
globalProperties.AddProperty(SolutionPathPropertyName,
EscapingUtilities
.Escape(Path.Combine(_solutionFile.SolutionFileDirectory, Path.GetFileName(_solutionFile.FullPath))));
Definition\BuiltInMetadata.cs (4)
56
return
EscapingUtilities
.UnescapeAll(GetMetadataValueEscaped(currentDirectory, evaluatedIncludeBeforeWildcardExpansionEscaped, evaluatedIncludeEscaped, definingProjectEscaped, name, ref fullPath));
107
string evaluatedIncludeBeforeWildcardExpansion =
EscapingUtilities
.UnescapeAll(evaluatedIncludeBeforeWildcardExpansionEscaped);
108
string evaluatedInclude =
EscapingUtilities
.UnescapeAll(evaluatedIncludeEscaped);
114
return
EscapingUtilities
.Escape(match.wildcardDirectoryPart);
Definition\ProjectCollection.cs (2)
988
return
EscapingUtilities
.Escape(unescapedString);
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\Toolset.cs (2)
904
reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.binPath,
EscapingUtilities
.Escape(ToolsPath), mayBeReserved: true));
907
reservedProperties.Add(ProjectPropertyInstance.Create(ReservedPropertyNames.toolsPath,
EscapingUtilities
.Escape(ToolsPath), mayBeReserved: true));
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 (14)
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);
1173
string projectFileWithoutExtension =
EscapingUtilities
.Escape(Path.GetFileNameWithoutExtension(_projectRootElement.FullPath));
1174
string projectExtension =
EscapingUtilities
.Escape(Path.GetExtension(_projectRootElement.FullPath));
1176
string projectDirectory =
EscapingUtilities
.Escape(_projectRootElement.DirectoryPath);
1928
propertyGroup.AddProperty(propertyNameAndValue.Key,
EscapingUtilities
.Escape(propertyNameAndValue.Value));
1944
escapedMetadata[metadata.Key] =
EscapingUtilities
.Escape(metadata.Value);
1948
itemGroup.AddItem(item.Key,
EscapingUtilities
.Escape(item.Value.ItemSpec), escapedMetadata);
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 (2)
9
using EscapingUtilities = Microsoft.Build.Shared.
EscapingUtilities
;
135
return
EscapingUtilities
.UnescapeAll(EvaluatedValueEscaped);
Evaluation\Expander.cs (16)
479
return (result == null) ? null :
EscapingUtilities
.UnescapeAll(result);
1492
builder.Append(
EscapingUtilities
.Escape(ConvertToString(entry.Key)));
1494
builder.Append(
EscapingUtilities
.Escape(ConvertToString(entry.Value)));
1518
builder.Append(
EscapingUtilities
.Escape(ConvertToString(element)));
1688
registryKeyName =
EscapingUtilities
.UnescapeAll(registryKeyName);
1692
valueName =
EscapingUtilities
.UnescapeAll(valueName);
2404
string unescapedPath =
EscapingUtilities
.UnescapeAll(item.Key);
2453
string unescapedPath =
EscapingUtilities
.UnescapeAll(item.Key);
2455
string escapedPath =
EscapingUtilities
.Escape(combinedPath);
2481
string unescapedPath =
EscapingUtilities
.UnescapeAll(item.Key);
2530
string escapedDirectoryPath =
EscapingUtilities
.Escape(directoryPath);
2558
string unescapedPath =
EscapingUtilities
.UnescapeAll(item.Key);
2587
directoryName =
EscapingUtilities
.Escape(directoryName);
3483
objectInstance =
EscapingUtilities
.UnescapeAll(objectInstanceString);
3511
args[n] =
EscapingUtilities
.UnescapeAll(argumentValue);
3630
functionResult =
EscapingUtilities
.Escape(functionResultString);
Evaluation\IntrinsicFunctions.cs (2)
129
return
EscapingUtilities
.Escape(unescaped);
137
return
EscapingUtilities
.UnescapeAll(escaped);
Evaluation\ItemSpec.cs (5)
93
return ReferencedItems.Select(v =>
EscapingUtilities
.UnescapeAll(v.ItemAsValueFragment.TextFragment));
236
else if (
EscapingUtilities
.ContainsEscapedWildcards(splitEscaped))
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 (2)
759
fileSpec = FixFilePath(
EscapingUtilities
.UnescapeAll(fileSpec));
762
string fullPath =
EscapingUtilities
.Escape(NormalizePath(Path.Combine(currentDirectory, fileSpec)));
Graph\GraphBuilder.cs (5)
301
solutionGlobalPropertiesBuilder["SolutionDir"] =
EscapingUtilities
.Escape(solutionDirectoryName);
302
solutionGlobalPropertiesBuilder["SolutionExt"] =
EscapingUtilities
.Escape(Path.GetExtension(Solution.FullPath));
303
solutionGlobalPropertiesBuilder["SolutionFileName"] =
EscapingUtilities
.Escape(Path.GetFileName(Solution.FullPath));
304
solutionGlobalPropertiesBuilder["SolutionName"] =
EscapingUtilities
.Escape(Path.GetFileNameWithoutExtension(Solution.FullPath));
305
solutionGlobalPropertiesBuilder[SolutionProjectGenerator.SolutionPathPropertyName] =
EscapingUtilities
.Escape(Path.Combine(Solution.SolutionFileDirectory, Path.GetFileName(Solution.FullPath)));
Instance\ProjectItemInstance.cs (4)
898
return
EscapingUtilities
.UnescapeAll(_includeEscaped);
975
get { return
EscapingUtilities
.UnescapeAll(_includeEscaped); }
1309
return
EscapingUtilities
.UnescapeAll(GetMetadataEscaped(metadataName));
1373
SetMetadata(metadataName,
EscapingUtilities
.Escape(metadataValue));
Instance\ProjectMetadataInstance.cs (1)
122
return
EscapingUtilities
.UnescapeAll(_escapedValue);
Instance\ProjectPropertyInstance.cs (2)
70
return
EscapingUtilities
.UnescapeAll(_escapedValue);
78
_escapedValue =
EscapingUtilities
.Escape(value);
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);
PropertyParser.cs (2)
107
string propertyValue =
EscapingUtilities
.Escape(propertyNameValueString.Substring(indexOfEqualsSign + 1).Trim());
150
string propertyValue =
EscapingUtilities
.Escape(propertyNameValueString.Trim());
TaskParameter.cs (14)
317
escapedItemSpec =
EscapingUtilities
.Escape(copyFrom.ItemSpec);
319
escapedDefiningProject =
EscapingUtilities
.EscapeWithCaching(copyFrom.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath));
328
escapedMetadata.Add(key,
EscapingUtilities
.Escape((string)customMetadata[key] ?? String.Empty));
421
escapedItemSpec =
EscapingUtilities
.Escape(wrappedItem.ItemSpec);
422
escapedDefiningProject =
EscapingUtilities
.EscapeWithCaching(wrappedItem.GetMetadata(FileUtilities.ItemSpecModifiers.DefiningProjectFullPath));
439
value = (value == null) ? value :
EscapingUtilities
.Escape(value);
449
escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value :
EscapingUtilities
.Escape(entry.Value);
775
return (_escapedItemSpec == null) ? String.Empty :
EscapingUtilities
.UnescapeAll(_escapedItemSpec);
838
return
EscapingUtilities
.UnescapeAll(metadataValue);
909
destinationItem.SetMetadata("OriginalItemSpec",
EscapingUtilities
.Escape(ItemSpec));
930
clonedMetadata.Add(metadatum.Key,
EscapingUtilities
.UnescapeAll(metadatum.Value));
978
SetMetadata(metadataName,
EscapingUtilities
.Escape(metadataValue));
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 (7)
141
return !
EscapingUtilities
.ContainsEscapedWildcards(filespecEscaped);
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();
351
fileList[i] =
EscapingUtilities
.Escape(fileList[i]);
531
var hasBothWildcardsAndEscapedWildcards = FileMatcher.HasWildcards(exclude) &&
EscapingUtilities
.ContainsEscapedWildcards(exclude);
Utilities\FileSpecMatchTester.cs (1)
41
string unescapedFileSpec =
EscapingUtilities
.UnescapeAll(fileSpec);
Microsoft.Build.Engine.UnitTests (49)
EscapingUtilities_Tests.cs (42)
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"));
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)));
79
Assert.False(
EscapingUtilities
.ContainsEscapedWildcards("NoStarOrQMark"));
80
Assert.False(
EscapingUtilities
.ContainsEscapedWildcards("%"));
81
Assert.False(
EscapingUtilities
.ContainsEscapedWildcards("%%"));
82
Assert.False(
EscapingUtilities
.ContainsEscapedWildcards("%2"));
83
Assert.False(
EscapingUtilities
.ContainsEscapedWildcards("%4"));
84
Assert.False(
EscapingUtilities
.ContainsEscapedWildcards("%3A"));
85
Assert.False(
EscapingUtilities
.ContainsEscapedWildcards("%2B"));
86
Assert.True(
EscapingUtilities
.ContainsEscapedWildcards("%2a"));
87
Assert.True(
EscapingUtilities
.ContainsEscapedWildcards("%2A"));
88
Assert.True(
EscapingUtilities
.ContainsEscapedWildcards("%3F"));
89
Assert.True(
EscapingUtilities
.ContainsEscapedWildcards("%3f"));
90
Assert.True(
EscapingUtilities
.ContainsEscapedWildcards("%%3f"));
91
Assert.True(
EscapingUtilities
.ContainsEscapedWildcards("%3%3f"));
Evaluation\Expander_Tests.cs (7)
4456
TestPropertyFunction("$([Microsoft.Build.Evaluation.IntrinsicFunctions]::GetCurrentToolsDirectory())", "X", "_",
EscapingUtilities
.Escape(IntrinsicFunctions.GetCurrentToolsDirectory()));
4462
TestPropertyFunction("$([Microsoft.Build.Evaluation.IntrinsicFunctions]::GetToolsDirectory32())", "X", "_",
EscapingUtilities
.Escape(IntrinsicFunctions.GetToolsDirectory32()));
4468
TestPropertyFunction("$([Microsoft.Build.Evaluation.IntrinsicFunctions]::GetToolsDirectory64())", "X", "_",
EscapingUtilities
.Escape(IntrinsicFunctions.GetToolsDirectory64()));
4474
TestPropertyFunction("$([Microsoft.Build.Evaluation.IntrinsicFunctions]::GetMSBuildSDKsPath())", "X", "_",
EscapingUtilities
.Escape(IntrinsicFunctions.GetMSBuildSDKsPath()));
4480
string vsInstallRoot =
EscapingUtilities
.Escape(IntrinsicFunctions.GetVsInstallRoot());
4490
TestPropertyFunction("$([Microsoft.Build.Evaluation.IntrinsicFunctions]::GetMSBuildExtensionsPath())", "X", "_",
EscapingUtilities
.Escape(IntrinsicFunctions.GetMSBuildExtensionsPath()));
4496
TestPropertyFunction("$([Microsoft.Build.Evaluation.IntrinsicFunctions]::GetProgramFiles32())", "X", "_",
EscapingUtilities
.Escape(IntrinsicFunctions.GetProgramFiles32()));