101 references to Escape
Microsoft.Build (84)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (6)
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));
Construction\Solution\SolutionProjectGenerator.cs (42)
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);
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 (1)
114
return EscapingUtilities.
Escape
(match.wildcardDirectoryPart);
Definition\ProjectCollection.cs (1)
988
return EscapingUtilities.
Escape
(unescapedString);
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));
Evaluation\Evaluator.cs (6)
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);
Evaluation\Expander.cs (7)
1492
builder.Append(EscapingUtilities.
Escape
(ConvertToString(entry.Key)));
1494
builder.Append(EscapingUtilities.
Escape
(ConvertToString(entry.Value)));
1518
builder.Append(EscapingUtilities.
Escape
(ConvertToString(element)));
2455
string escapedPath = EscapingUtilities.
Escape
(combinedPath);
2530
string escapedDirectoryPath = EscapingUtilities.
Escape
(directoryPath);
2587
directoryName = EscapingUtilities.
Escape
(directoryName);
3630
functionResult = EscapingUtilities.
Escape
(functionResultString);
Evaluation\IntrinsicFunctions.cs (1)
129
return EscapingUtilities.
Escape
(unescaped);
FileUtilities.cs (1)
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 (1)
1373
SetMetadata(metadataName, EscapingUtilities.
Escape
(metadataValue));
Instance\ProjectPropertyInstance.cs (1)
78
_escapedValue = EscapingUtilities.
Escape
(value);
PropertyParser.cs (2)
107
string propertyValue = EscapingUtilities.
Escape
(propertyNameValueString.Substring(indexOfEqualsSign + 1).Trim());
150
string propertyValue = EscapingUtilities.
Escape
(propertyNameValueString.Trim());
TaskParameter.cs (7)
317
escapedItemSpec = EscapingUtilities.
Escape
(copyFrom.ItemSpec);
328
escapedMetadata.Add(key, EscapingUtilities.
Escape
((string)customMetadata[key] ?? String.Empty));
421
escapedItemSpec = EscapingUtilities.
Escape
(wrappedItem.ItemSpec);
439
value = (value == null) ? value : EscapingUtilities.
Escape
(value);
449
escapedGenericWrappedMetadata[entry.Key] = entry.Value == null ? entry.Value : EscapingUtilities.
Escape
(entry.Value);
909
destinationItem.SetMetadata("OriginalItemSpec", EscapingUtilities.
Escape
(ItemSpec));
978
SetMetadata(metadataName, EscapingUtilities.
Escape
(metadataValue));
Utilities\EngineFileUtilities.cs (1)
351
fileList[i] = EscapingUtilities.
Escape
(fileList[i]);
Microsoft.Build.Engine.UnitTests (17)
EscapingUtilities_Tests.cs (10)
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)));
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()));