25 references to Executable
dotnet (10)
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
89if (!_fileSystem.File.Exists(toolCommand.Executable.Value)) 95return ToolCommandSpecCreator.CreateToolCommandSpec(toolCommand.Name.Value, toolCommand.Executable.Value, toolCommand.Runner,
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
135var 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)
26if (string.IsNullOrEmpty(toolCommand.Executable.Value)) 59toolCommand.Executable, 66string relativePathToExe = Path.GetRelativePath(_shimsDirectory.Value, toolCommand.Executable.Value);
ToolPackage\LocalToolsResolverCache.cs (1)
128PathToExecutable = toolCommand.Executable.Value
ToolPackage\ToolCommand.cs (1)
24return $"ToolCommandName: {Name.Value} - Runner: {Runner} - FilePath: {Executable.Value}";
ToolPackage\ToolPackageDownloaderBase.cs (1)
380var 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)
117var assetJsonPath = package.Command.Executable 815fileSystem.File.Exists(package.Command.Executable.Value).Should().BeTrue($"{package.Command.Executable.Value} should exist"); 845fileSystem.File.Exists(package.Command.Executable.Value).Should() 846.BeTrue($"{package.Command.Executable.Value} should exist"); 847package.Command.Executable.Value.Should().Contain(store.Root.Value);
ToolPackageInstallerNugetCacheTests.cs (4)
52command.Executable.Value.Should().StartWith(expectedPackagesFolder); 55.Exists(command.Executable.Value) 56.Should().BeTrue($"{command.Executable.Value} should exist"); 92command.Executable.Value.Should().StartWith(expectedPackagesFolder);