82 writes to Args
aspire (13)
Projects\JavaAppHostToolchainResolver.cs (3)
685Args = args, 721Args = ["-cp", classPath, "AppHost"] 738Args = [.. PrefixArgs, .. args]
Projects\TypeScriptAppHostToolchainResolver.cs (10)
177Args = args 190Args = ["run", "tsc", "--noEmit", "-p", tsConfigFileName] 195Args = ["run", "tsc", "--noEmit", "-p", tsConfigFileName] 200Args = ["exec", "tsc", "--noEmit", "-p", tsConfigFileName] 214Args = ["run", "{appHostFile}"] 219Args = ["run", "tsx", "--tsconfig", tsConfigFileName, "{appHostFile}"] 224Args = ["exec", "tsx", "--tsconfig", tsConfigFileName, "{appHostFile}"] 237Args = 252Args = 267Args =
Aspire.Cli.Tests (53)
Projects\GuestRuntimeTests.cs (45)
64Args = ["{appHostFile}"] 79Args = ["--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"] 86Args = ["--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"] 123Args = ["{appHostFile}"] 141execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 142watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] } 159execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 160watchExecute: new CommandSpec { Command = "watch-cmd", Args = ["--watch", "{appHostFile}"] }, 163new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 181execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 184new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 227execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 230new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 272Args = ["tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"] 279Args = ["tsc", "--noEmit", "-p", "tsconfig.apphost.json"] 322execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 325new CommandSpec { Command = "typecheck-cmd", Args = ["--noEmit"] } 356var spec = CreateTestSpec(execute: new CommandSpec { Command = "missing-cmd", Args = ["{appHostFile}"] }); 383var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 398execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 399publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] } 416execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 417publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 420new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 438execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }, 439publishExecute: new CommandSpec { Command = "publish-cmd", Args = ["{appHostFile}", "{args}"] }, 442new CommandSpec { Command = "typecheck-cmd", Args = ["--project", "{appHostDir}"] } 497var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd", Args = ["{appHostFile}"] }); 514Args = ["{appHostFile}"], 535Args = ["{appHostFile}"], 555Args = ["tsx", "{appHostFile}"] 574Args = ["--dir", "{appHostDir}"] 592Args = ["{appHostFile}"] 612Args = ["{args}"] 633Execute = new CommandSpec { Command = "test-cmd", Args = ["{appHostFile}"] }, 671Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] }, 672InstallDependencies = new CommandSpec { Command = "npm", Args = ["install"] } 698Execute = new CommandSpec { Command = "npx", Args = ["tsx", "{appHostFile}"] } 961Args = ["--tsconfig", migrationFileName, "{appHostFile}"] 1009Args = ["--tsconfig", migrationFileName, "{appHostFile}"] 1035Args = ["{appHostFile}"] 1240execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1246Args = ["-d", "classes", "{appHostFile}"], 1395execute: new CommandSpec { Command = "java", Args = ["AppHost"] }, 1401Args = ["-d", "classes", "{appHostFile}"],
Projects\JavaAppHostToolchainResolverTests.cs (3)
58Args = ["--release", "25", "-d", ".java-build", "@.aspire/modules/sources.txt", "{appHostFile}"] 64Args = ["-cp", ".java-build", "AppHost"] 203Args = baseCompile.Args,
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
361Args = ["install"] 368Args = ["--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"] 374Args = ["--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"] 379Args = ["--no-install", "nodemon", "--exec", "npx --no-install tsx --tsconfig tsconfig.apphost.json {appHostFile}"]
TestServices\FakeAppHostServerSession.cs (1)
116Execute = new CommandSpec { Command = "node", Args = ["apphost.js"] }
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
143Args = ["run", "."]
Aspire.Hosting.CodeGeneration.Java (2)
JavaLanguageSupport.cs (2)
280Args = [.. s_javacOptions, "-d", BuildOutputDirectory, $"@{GeneratedSourcesListPath}", "{appHostFile}"] 306Args = ["-cp", BuildOutputDirectory, AppHostClassName]
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
25Args = ["--release", "25", "-d", ".java-build", "@.aspire/modules/sources.txt", "{appHostFile}"]
Aspire.Hosting.CodeGeneration.Python (7)
PythonLanguageSupport.cs (7)
186Args = ["venv", ".venv", "--allow-existing"] 192Args = ["pip", "sync", "pylock.apphost.toml"] 197Args = ["run", "python", "{appHostFile}", "{args}"] 222Args = initializeArgs 227Args = ["-m", "ensurepip", "--upgrade"] 233Args = ["-m", "pip", "install", "-r", "apphost_requirements.txt"] 238Args = ["{appHostFile}", "{args}"]
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
153Args = ["run", "--bin", AppHostBinaryName, "--"]
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
261Args = ["install"] 268Args = ["--no-install", "tsc", "--noEmit", "-p", AppHostTsConfigFileName] 274Args = ["--no-install", "tsx", "--tsconfig", AppHostTsConfigFileName, "{appHostFile}"] 279Args = [
39 references to Args
aspire (7)
Projects\GuestAppHostProject.cs (1)
2068string.Join(" ", runtimeSpec.Execute.Args));
Projects\GuestRuntime.cs (4)
90var args = ReplacePlaceholders(commandSpec.Args, null, directory, null); 130var args = ReplacePlaceholders(_spec.InstallDependencies.Args, null, directory, null); 256var args = ReplacePlaceholders(commandSpec.Args, appHostFile, directory, null); 543var args = ReplacePlaceholders(commandSpec.Args, appHostFile, directory, additionalArgs);
Projects\JavaAppHostToolchainResolver.cs (1)
648var baseArgs = baseCompile.Args ?? [];
Projects\TypeScriptAppHostToolchainResolver.cs (1)
285var args = runtimeSpec.Execute.Args;
Aspire.Cli.Tests (26)
Projects\JavaAppHostToolchainResolverTests.cs (15)
32actual.Args); 38Assert.Equal([wrapperPath, .. toolArgs], actual.Args); 162compile.Args); 169spec.Execute.Args); 170Assert.DoesNotContain(spec.Execute.Args, arg => arg.Contains("{args}", StringComparison.Ordinal)); 203Args = baseCompile.Args, 259compile.Args); 264spec.Execute.Args); 537Assert.Contains("-f", spec.InstallDependencies!.Args); 538Assert.Contains(Path.Combine(toProjectRoot, "pom.xml"), spec.InstallDependencies.Args); 543Assert.Contains($"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", spec.InstallDependencies.Args); 555Assert.Single(spec.PreExecute!).Args); 562spec.Execute.Args); 582var initScriptArgument = spec.InstallDependencies!.Args[Array.IndexOf(spec.InstallDependencies.Args, "--init-script") + 1];
Projects\TypeScriptAppHostToolchainResolverTests.cs (11)
291Assert.Equal(["install"], runtimeSpec.InstallDependencies!.Args); 294Assert.Equal(["run", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.Args); 296Assert.Equal(["run", "{appHostFile}"], runtimeSpec.Execute.Args); 310runtimeSpec.WatchExecute!.Args); 324Assert.Equal(["run", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.Args); 326Assert.Equal(["run", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"], runtimeSpec.Execute.Args); 328Assert.Contains("yarn run tsc --noEmit -p tsconfig.apphost.json && yarn run tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", runtimeSpec.WatchExecute?.Args ?? []); 340Assert.Equal(["install", "--ignore-workspace"], installDependencies.Args); 343Assert.Equal(["exec", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.Args); 345Assert.Equal(["exec", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"], runtimeSpec.Execute.Args); 347Assert.Contains("pnpm exec tsc --noEmit -p tsconfig.apphost.json && pnpm exec tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", runtimeSpec.WatchExecute?.Args ?? []);
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
RustLanguageSupportTests.cs (2)
88Assert.Equal(["run", "--bin", "apphost", "--"], runtimeSpec.Execute.Args); 115Assert.Equal(["run", "--bin", "apphost", "--"], runtimeSpec.Execute.Args);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
TypeScriptLanguageSupportTests.cs (3)
262Assert.Equal(new[] { "--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json" }, preExecute.Args); 263Assert.Equal(new[] { "--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}" }, runtimeSpec.Execute.Args); 264Assert.Contains("npx --no-install tsc --noEmit -p tsconfig.apphost.json && npx --no-install tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", watchExecute.Args);
Aspire.TypeSystem (1)
RuntimeSpec.cs (1)
135/// absolute. Supports the same placeholders as <see cref="CommandSpec.Args" />.