25 references to Executable
dotnet (10)
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
89
if (!_fileSystem.File.Exists(toolCommand.
Executable
.Value))
95
return ToolCommandSpecCreator.CreateToolCommandSpec(toolCommand.Name.Value, toolCommand.
Executable
.Value, toolCommand.Runner,
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
135
var commandSpec = ToolCommandSpecCreator.CreateToolCommandSpec(toolPackage.Command.Name.Value, toolPackage.Command.
Executable
.Value, toolPackage.Command.Runner, _allowRollForward, _forwardArguments);
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
129
&& _fileSystem.File.Exists(toolCommand.
Executable
.Value);
ShellShim\ShellShimRepository.cs (3)
26
if (string.IsNullOrEmpty(toolCommand.
Executable
.Value))
59
toolCommand.
Executable
,
66
string relativePathToExe = Path.GetRelativePath(_shimsDirectory.Value, toolCommand.
Executable
.Value);
ToolPackage\LocalToolsResolverCache.cs (1)
128
PathToExecutable = toolCommand.
Executable
.Value
ToolPackage\ToolCommand.cs (1)
24
return $"ToolCommandName: {Name.Value} - Runner: {Runner} - FilePath: {
Executable
.Value}";
ToolPackage\ToolPackageDownloaderBase.cs (1)
380
var runtimeConfigFilePath = Path.ChangeExtension(toolPackageInstance.Command.
Executable
.Value, ".runtimeconfig.json");
dotnet.Tests (5)
CommandTests\Tool\Install\ToolInstallLocalCommandTests.cs (2)
425
_fileSystem.File.Exists(restoredCommand.
Executable
.Value);
570
_fileSystem.File.Exists(restoredCommand.
Executable
.Value);
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (2)
146
_fileSystem.File.Exists(restoredCommand.
Executable
.Value)
147
.Should().BeTrue($"Cached command should be found at {restoredCommand.
Executable
.Value}");
CommandTests\Tool\Update\ToolUpdateLocalCommandTests.cs (1)
425
_fileSystem.File.Exists(restoredCommand.
Executable
.Value).Should().BeTrue();
Microsoft.DotNet.PackageInstall.Tests (10)
ToolPackageDownloaderTests.cs (6)
117
var assetJsonPath = package.Command.
Executable
815
fileSystem.File.Exists(package.Command.
Executable
.Value).Should().BeTrue($"{package.Command.
Executable
.Value} should exist");
845
fileSystem.File.Exists(package.Command.
Executable
.Value).Should()
846
.BeTrue($"{package.Command.
Executable
.Value} should exist");
847
package.Command.
Executable
.Value.Should().Contain(store.Root.Value);
ToolPackageInstallerNugetCacheTests.cs (4)
52
command.
Executable
.Value.Should().StartWith(expectedPackagesFolder);
55
.Exists(command.
Executable
.Value)
56
.Should().BeTrue($"{command.
Executable
.Value} should exist");
92
command.
Executable
.Value.Should().StartWith(expectedPackagesFolder);