20 references to Escape
aspire (8)
DotNet\DotNetAppHostRestorePreview.cs (6)
92
new XAttribute("Project", MSBuildEscaping.
Escape
(Path.GetFullPath(restoreTargets, Path.GetDirectoryName(path)!))),
96
new XAttribute("Project", MSBuildEscaping.
Escape
(restoreSettings.RestoreTargets)),
117
new XElement("RestoreRootConfigDirectory", MSBuildEscaping.
Escape
(configuration.EffectiveWorkingDirectory.FullName))));
159
MSBuildEscaping.
Escape
(Path.TrimEndingDirectorySeparator(outputDirectory.FullName)) + Path.DirectorySeparatorChar
183
=> $"('$(MSBuildProjectFullPath)' == '{MSBuildEscaping.
Escape
(path)}' Or '$(MSBuildProjectFullPath)' == '{MSBuildEscaping.
Escape
(PathNormalizer.ResolveToFilesystemPath(path))}')";
DotNet\DotNetCliRunner.cs (1)
1292
cliArgs = [.. cliArgs, $"-property:NuGetRestoreTargets={MSBuildEscaping.
Escape
(restoreTargets.FullName)}"];
Projects\IntegrationClosureBuilder.cs (1)
123
.Select(MSBuildEscaping.
Escape
)
Aspire.Cli.Tests (12)
DotNet\DotNetCliRunnerTests.cs (11)
86
#:property CustomAfterMicrosoftCommonTargets={{MSBuildEscaping.
Escape
(validationTargets)}}
102
<Import Project="{{MSBuildEscaping.
Escape
(validationTargets)}}" />
148
#:property _WorkloadLibraryPacksFolder={{MSBuildEscaping.
Escape
(libraryPacks.FullName)}}
162
<_WorkloadLibraryPacksFolder>{{MSBuildEscaping.
Escape
(libraryPacks.FullName)}}</_WorkloadLibraryPacksFolder>
265
<Import Project="{{MSBuildEscaping.
Escape
(Path.Combine(sdkDirectory, "NuGet.targets"))}}" />
274
<PropertyGroup><TargetFramework>net{{Environment.Version.Major}}.0</TargetFramework><RestorePackagesPath>{{childCache.FullName}}</RestorePackagesPath><DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences><NuGetRestoreTargets>{{MSBuildEscaping.
Escape
(childTargets)}}</NuGetRestoreTargets></PropertyGroup>
292
#:property RestorePackagesPath={{MSBuildEscaping.
Escape
(rootCache.FullName)}}
302
<PropertyGroup><TargetFramework>net{{Environment.Version.Major}}.0</TargetFramework><RestorePackagesPath>{{MSBuildEscaping.
Escape
(rootCache.FullName)}}</RestorePackagesPath><DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences><RestorePackagesWithLockFile>true</RestorePackagesWithLockFile></PropertyGroup>
356
["restore", projectFile.FullName, $"-property:NuGetRestoreTargets={MSBuildEscaping.
Escape
(preview.TargetsFile.FullName)}"];
533
["restore", projectFile.FullName, $"-property:NuGetRestoreTargets={MSBuildEscaping.
Escape
(preview.TargetsFile.FullName)}"]);
998
expected = [.. expected, $"-property:NuGetRestoreTargets={MSBuildEscaping.
Escape
(targets.FullName)}"];
DotNet\MSBuildEscapingTests.cs (1)
15
=> Assert.Equal(expected, MSBuildEscaping.
Escape
(value));