49 references to Command
Aspire.Hosting (2)
Dcp\DcpExecutor.cs (1)
1413var exePath = executable.Command;
Publishing\ManifestPublishingContext.cs (1)
266Writer.WriteString("command", executable.Command);
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
132var cliAnnotation = new RequiredCommandAnnotation(tunnelResource.Command)
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
241.Entrypoint([resource.Command, scriptPath]);
Aspire.Hosting.JavaScript.Tests (16)
AddNodeAppTests.cs (2)
512Assert.Equal("msedge", browserDebuggerResource.Command); 528Assert.Equal("chrome", browserDebuggerResource.Command);
AddViteAppWithPnpmTests.cs (1)
90Assert.Equal("npm", nodeResource.Command);
PackageInstallationTests.cs (10)
39Assert.All(nodeResources, resource => Assert.Equal("npm", resource.Command)); 92Assert.Equal("yarn", nodeResource.Command); 131Assert.Equal("yarn", nodeResource.Command); 161Assert.Equal("pnpm", nodeResource.Command); 200Assert.Equal("pnpm", nodeResource.Command); 366Assert.Equal("yarn", installer.Command); 383Assert.Equal("npm", nodeResource.Command); 405Assert.Equal("yarn", nodeResource.Command); 427Assert.Equal("pnpm", nodeResource.Command); 447Assert.Equal("npm", nodeResource.Command);
ResourceCreationTests.cs (3)
26Assert.Equal("npm", resource.Command); 103Assert.Equal("npm", nodeResource.Command); 175Assert.Equal("npm", nodeResource.Command);
Aspire.Hosting.Python.Tests (23)
AddPythonAppTests.cs (23)
166Assert.Equal(Path.Join(projectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 170Assert.Equal(Path.Join(projectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 205Assert.Equal(Path.Join(projectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 209Assert.Equal(Path.Join(projectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 248Assert.Equal(Path.Join(projectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 252Assert.Equal(Path.Join(projectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 423Assert.Equal(Path.Join(expectedProjectDirectory, "custom-venv", "Scripts", "python.exe"), pythonProjectResource.Command); 427Assert.Equal(Path.Join(expectedProjectDirectory, "custom-venv", "bin", "python"), pythonProjectResource.Command); 454Assert.Equal(Path.Join(tempVenvDir.Path, "Scripts", "python.exe"), pythonProjectResource.Command); 458Assert.Equal(Path.Join(tempVenvDir.Path, "bin", "python"), pythonProjectResource.Command); 547AssertPythonCommandPath(expectedVenvPath, pythonProjectResource.Command); 580AssertPythonCommandPath(appHostVenvPath, pythonProjectResource.Command); 629AssertPythonCommandPath(appVenvPath, pythonProjectResource.Command); 666AssertPythonCommandPath(expectedVenvPath, pythonProjectResource.Command); 706AssertPythonCommandPath(customVenvPath, pythonProjectResource.Command); 995Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 999Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 1028Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 1032Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 1062Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", $"{executableName}.exe"), pythonProjectResource.Command); 1066Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", executableName), pythonProjectResource.Command); 1186var initialCommand = pythonBuilder.Resource.Command; 1191var newCommand = pythonBuilder.Resource.Command;
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (4)
325Assert.Equal("dotnet", executableResource.Command); 406Assert.Equal("dotnet", executableResource.Command); 475Assert.Equal("dotnet", executableResource.Command); 542Assert.Equal("dotnet", executableResource.Command);
Dashboard\DashboardResourceTests.cs (2)
57Assert.Equal("dotnet", dashboard.Command); 268Assert.Equal("dotnet", dashboard.Command);