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