46 references to Command
Aspire.Hosting (2)
Dcp\DcpExecutor.cs (1)
1249var exePath = executable.Command;
Publishing\ManifestPublishingContext.cs (1)
263Writer.WriteString("command", executable.Command);
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
173.Entrypoint([resource.Command, scriptPath]);
Aspire.Hosting.JavaScript.Tests (14)
AddViteAppWithPnpmTests.cs (1)
58Assert.Equal("npm", nodeResource.Command);
PackageInstallationTests.cs (10)
38Assert.All(nodeResources, resource => Assert.Equal("npm", resource.Command)); 87Assert.Equal("yarn", nodeResource.Command); 126Assert.Equal("yarn", nodeResource.Command); 153Assert.Equal("pnpm", nodeResource.Command); 192Assert.Equal("pnpm", nodeResource.Command); 352Assert.Equal("yarn", installer.Command); 369Assert.Equal("npm", nodeResource.Command); 391Assert.Equal("yarn", nodeResource.Command); 413Assert.Equal("pnpm", nodeResource.Command); 433Assert.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); 577AssertPythonCommandPath(appHostVenvPath, pythonProjectResource.Command); 622AssertPythonCommandPath(appVenvPath, pythonProjectResource.Command); 659AssertPythonCommandPath(expectedVenvPath, pythonProjectResource.Command); 695AssertPythonCommandPath(customVenvPath, pythonProjectResource.Command); 961Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 965Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 994Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 998Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 1028Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", $"{executableName}.exe"), pythonProjectResource.Command); 1032Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", executableName), pythonProjectResource.Command); 1152var initialCommand = pythonBuilder.Resource.Command; 1157var newCommand = pythonBuilder.Resource.Command;
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (4)
244Assert.Equal("dotnet", executableResource.Command); 330Assert.Equal("dotnet", executableResource.Command); 402Assert.Equal("dotnet", executableResource.Command); 472Assert.Equal("dotnet", executableResource.Command);
Dashboard\DashboardResourceTests.cs (2)
55Assert.Equal("dotnet", dashboard.Command); 251Assert.Equal("dotnet", dashboard.Command);