18 references to Escape
aspire (7)
DotNet\DotNetAppHostRestorePreview.cs (5)
66new XAttribute("Project", MSBuildEscaping.Escape(Path.GetFullPath(restoreTargets, Path.GetDirectoryName(path)!))), 70new XAttribute("Project", MSBuildEscaping.Escape(restoreSettings.RestoreTargets)), 91new XElement("RestoreRootConfigDirectory", MSBuildEscaping.Escape(configuration.EffectiveWorkingDirectory.FullName)))); 110=> $"('$(MSBuildProjectFullPath)' == '{MSBuildEscaping.Escape(path)}' Or '$(MSBuildProjectFullPath)' == '{MSBuildEscaping.Escape(PathNormalizer.ResolveToFilesystemPath(path))}')";
DotNet\DotNetCliRunner.cs (1)
1261cliArgs = [.. cliArgs, $"-property:NuGetRestoreTargets={MSBuildEscaping.Escape(restoreTargets.FullName)}"];
Projects\IntegrationClosureBuilder.cs (1)
123.Select(MSBuildEscaping.Escape)
Aspire.Cli.Tests (11)
DotNet\DotNetCliRunnerTests.cs (10)
85#:property CustomAfterMicrosoftCommonTargets={{MSBuildEscaping.Escape(validationTargets)}} 101<Import Project="{{MSBuildEscaping.Escape(validationTargets)}}" /> 147#:property _WorkloadLibraryPacksFolder={{MSBuildEscaping.Escape(libraryPacks.FullName)}} 161<_WorkloadLibraryPacksFolder>{{MSBuildEscaping.Escape(libraryPacks.FullName)}}</_WorkloadLibraryPacksFolder> 261<Import Project="{{MSBuildEscaping.Escape(Path.Combine(sdkDirectory, "NuGet.targets"))}}" /> 270<PropertyGroup><TargetFramework>net{{Environment.Version.Major}}.0</TargetFramework><RestorePackagesPath>{{childCache.FullName}}</RestorePackagesPath><DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences><NuGetRestoreTargets>{{MSBuildEscaping.Escape(childTargets)}}</NuGetRestoreTargets></PropertyGroup> 288#:property RestorePackagesPath={{MSBuildEscaping.Escape(rootCache.FullName)}} 298<PropertyGroup><TargetFramework>net{{Environment.Version.Major}}.0</TargetFramework><RestorePackagesPath>{{MSBuildEscaping.Escape(rootCache.FullName)}}</RestorePackagesPath><DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences></PropertyGroup> 350["restore", projectFile.FullName, $"-property:NuGetRestoreTargets={MSBuildEscaping.Escape(preview.TargetsFile.FullName)}"]); 866? ["restore", projectFile.FullName, $"-property:NuGetRestoreTargets={MSBuildEscaping.Escape(targets.FullName)}"]
DotNet\MSBuildEscapingTests.cs (1)
15=> Assert.Equal(expected, MSBuildEscaping.Escape(value));