46 references to Command
Aspire.Hosting (2)
Dcp\DcpExecutor.cs (1)
1287var exePath = executable.Command;
Publishing\ManifestPublishingContext.cs (1)
263Writer.WriteString("command", executable.Command);
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
236.Entrypoint([resource.Command, scriptPath]);
Aspire.Hosting.JavaScript.Tests (14)
AddViteAppWithPnpmTests.cs (1)
58Assert.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); 577AssertPythonCommandPath(appHostVenvPath, pythonProjectResource.Command); 622AssertPythonCommandPath(appVenvPath, pythonProjectResource.Command); 659AssertPythonCommandPath(expectedVenvPath, pythonProjectResource.Command); 695AssertPythonCommandPath(customVenvPath, pythonProjectResource.Command); 984Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 988Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 1017Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", "python.exe"), pythonProjectResource.Command); 1021Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", "python"), pythonProjectResource.Command); 1051Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "Scripts", $"{executableName}.exe"), pythonProjectResource.Command); 1055Assert.Equal(Path.Join(expectedProjectDirectory, ".venv", "bin", executableName), pythonProjectResource.Command); 1175var initialCommand = pythonBuilder.Resource.Command; 1180var newCommand = pythonBuilder.Resource.Command;
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (4)
250Assert.Equal("dotnet", executableResource.Command); 336Assert.Equal("dotnet", executableResource.Command); 408Assert.Equal("dotnet", executableResource.Command); 478Assert.Equal("dotnet", executableResource.Command);
Dashboard\DashboardResourceTests.cs (2)
55Assert.Equal("dotnet", dashboard.Command); 256Assert.Equal("dotnet", dashboard.Command);