6 references to IsAncestorDirectory
aspire (6)
DotNet\DotNetAppHostNuGetConfigMerger.cs (1)
131: paths.Where(path => !BundleNuGetService.IsAncestorDirectory(
DotNet\DotNetAppHostRestorePreview.cs (2)
63if (candidate is not null && !BundleNuGetService.IsAncestorDirectory(candidate.TargetFile.DirectoryName!, rootProject.DirectoryName!)) 103if (!BundleNuGetService.IsAncestorDirectory(candidate!.TargetFile.DirectoryName!, Path.GetDirectoryName(path)!))
NuGet\BundleNuGetService.cs (3)
428if (!IsAncestorDirectory(targetFile.DirectoryName!, workingDirectory.FullName)) 434IsAncestorDirectory(Path.GetDirectoryName(path)!, targetFile.DirectoryName!) || 435!IsAncestorDirectory(Path.GetDirectoryName(path)!, workingDirectory.FullName));