31 references to PathLookupHelper
Aspire.Hosting (2)
ApplicationModel\RequiredCommandValidator.cs (1)
204return PathLookupHelper.FindFullPathFromPath(command);
Dcp\Process\ProcessUtil.cs (1)
37? PathLookupHelper.ResolveExecutablePath(processSpec.ExecutablePath, processSpec.EnvironmentVariables)
Aspire.Hosting.Rust.Tests (1)
CargoTestHelpers.cs (1)
10if (PathLookupHelper.FindFullPathFromPath("cargo") is null)
Aspire.Hosting.Tests (26)
PathLookupHelperTests.cs (26)
21var result = PathLookupHelper.ResolveExecutablePath( 31var exception = Assert.Throws<FileNotFoundException>(() => PathLookupHelper.ResolveExecutablePath( 60var result = PathLookupHelper.ResolveExecutablePath( 78var result = PathLookupHelper.ResolveExecutablePath( 98var result = PathLookupHelper.ResolveExecutablePath( 115var result = PathLookupHelper.FindFullPathFromPath("mycommand", "/usr/bin:/usr/local/bin", ':', existingFiles.Contains, null); 128var result = PathLookupHelper.FindFullPathFromPath("mycommand", "/usr/bin:/usr/local/bin", ':', AlwaysFalse, null); 141var result = PathLookupHelper.FindFullPathFromPath("mycommand", "", ':', AlwaysFalse, null); 154var result = PathLookupHelper.FindFullPathFromPath("mycommand", null, ':', AlwaysFalse, null); 171var result = PathLookupHelper.FindFullPathFromPath("mycommand", "/first/path:/second/path", ':', existingFiles.Contains, null); 188var result = PathLookupHelper.FindAllFullPathsFromPath("mycommand", "/first/path:/second/path", ':', existingFiles.Contains, null); 198var result = PathLookupHelper.FindAllFullPathsFromPath("mycommand", "/usr/bin:/usr/local/bin", ':', AlwaysFalse, null); 241var result = PathLookupHelper.FindAllFullPathsFromPath( 266var result = PathLookupHelper.FindAllFullPathsFromPath("code", path, ';', existingFiles.Contains, pathExtensions); 283var result = PathLookupHelper.FindFullPathFromPath("mycommand", $"{dir};otherdir", ';', existingFiles.Contains, null); 302var result = PathLookupHelper.FindFullPathFromPath("code", dir, ';', existingFiles.Contains, pathExtensions); 323var result = PathLookupHelper.FindFullPathFromPath("code", dir, ';', existingFiles.Contains, pathExtensions); 347var result = PathLookupHelper.FindFullPathFromPath("code", dir, ';', existingFiles.Contains, pathExtensions); 366var result = PathLookupHelper.FindFullPathFromPath("mytool", dir, ';', existingFiles.Contains, pathExtensions); 385var result = PathLookupHelper.FindFullPathFromPath("code.CMD", dir, ';', existingFiles.Contains, pathExtensions); 400var result = PathLookupHelper.FindFullPathFromPath("code.EXE", dir, ';', existingFiles.Contains, pathExtensions); 420var result = PathLookupHelper.FindFullPathFromPath("code.EXE", dir, ';', existingFiles.Contains, pathExtensions); 437var result = PathLookupHelper.FindFullPathFromPath("code", dir, ':', existingFiles.Contains, null); 454var result = PathLookupHelper.FindFullPathFromPath("code", dir, ':', existingFiles.Contains, []); 479var result = PathLookupHelper.FindFullPathFromPath("code", $"{dir1};{dir2}", ';', existingFiles.Contains, pathExtensions); 503var result = PathLookupHelper.FindFullPathFromPath("mytool", $"{dir1};{dir2}", ';', existingFiles.Contains, pathExtensions);
Aspire.Hosting.TestUtilities (2)
Utils\DockerUtils.cs (1)
59return PathLookupHelper.FindFullPathFromPath(detected.Executable) is { } executable
Utils\DotnetFileAppProcess.cs (1)
13public static string ResolvedExecutablePath { get; } = PathLookupHelper.FindFullPathFromPath(ExecutablePath) ?? ExecutablePath;