97 writes to Args
aspire (16)
Projects\JavaAppHostToolchainResolver.cs (3)
838
Args
= args,
877
Args
= ["-cp", classPath, "AppHost"]
894
Args
= [.. PrefixArgs, .. args]
Projects\TypeScriptAppHostToolchainResolver.cs (13)
205
Args
= args
218
Args
= ["run", "tsc", "--noEmit", "-p", tsConfigFileName]
223
Args
= ["run", "tsc", "--noEmit", "-p", tsConfigFileName]
228
Args
= ["exec", "tsc", "--noEmit", "-p", tsConfigFileName]
236
Args
= ["check", "--unstable-sloppy-imports", "{appHostFile}"]
250
Args
= ["run", "{appHostFile}"]
255
Args
= ["run", "tsx", "--tsconfig", tsConfigFileName, "{appHostFile}"]
260
Args
= ["exec", "tsx", "--tsconfig", tsConfigFileName, "{appHostFile}"]
269
Args
= ["run", "-A", "--unstable-sloppy-imports", "{appHostFile}"]
282
Args
=
297
Args
=
312
Args
=
330
Args
= ["run", "-A", "--unstable-sloppy-imports", "--check", "--watch", "{appHostFile}"]
Aspire.Cli.Tests (65)
Projects\GuestAppHostProjectTests.cs (5)
181
Execute = new CommandSpec { Command = guestInstaller,
Args
= [] },
182
InstallDependencies = new CommandSpec { Command = guestInstaller,
Args
= [] }
1173
Execute = new CommandSpec { Command = "unused",
Args
= [] },
1177
Args
= OperatingSystem.IsWindows() ? ["/d", "/c", installScriptPath] : [installScriptPath]
2075
Execute = new CommandSpec { Command = "node",
Args
= ["apphost.js"] },
Projects\GuestRuntimeTests.cs (52)
61
Args
= ["{appHostFile}"]
76
Args
= ["--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"]
83
Args
= ["--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"]
120
Args
= ["{appHostFile}"]
138
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
139
watchExecute: new CommandSpec { Command = "watch-cmd",
Args
= ["--watch", "{appHostFile}"] }
156
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
157
watchExecute: new CommandSpec { Command = "watch-cmd",
Args
= ["--watch", "{appHostFile}"] },
160
new CommandSpec { Command = "typecheck-cmd",
Args
= ["--noEmit"] }
178
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
181
new CommandSpec { Command = "typecheck-cmd",
Args
= ["--project", "{appHostDir}"] }
224
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
227
new CommandSpec { Command = "typecheck-cmd",
Args
= ["--project", "{appHostDir}"] }
269
Args
= ["tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"]
276
Args
= ["tsc", "--noEmit", "-p", "tsconfig.apphost.json"]
319
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
322
new CommandSpec { Command = "typecheck-cmd",
Args
= ["--noEmit"] }
353
var spec = CreateTestSpec(execute: new CommandSpec { Command = "missing-cmd",
Args
= ["{appHostFile}"] });
380
var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] });
395
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
396
publishExecute: new CommandSpec { Command = "publish-cmd",
Args
= ["{appHostFile}", "{args}"] }
413
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
414
publishExecute: new CommandSpec { Command = "publish-cmd",
Args
= ["{appHostFile}", "{args}"] },
417
new CommandSpec { Command = "typecheck-cmd",
Args
= ["--project", "{appHostDir}"] }
435
execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] },
436
publishExecute: new CommandSpec { Command = "publish-cmd",
Args
= ["{appHostFile}", "{args}"] },
439
new CommandSpec { Command = "typecheck-cmd",
Args
= ["--project", "{appHostDir}"] }
494
var spec = CreateTestSpec(execute: new CommandSpec { Command = "run-cmd",
Args
= ["{appHostFile}"] });
511
Args
= ["{appHostFile}"],
532
Args
= ["{appHostFile}"],
552
Args
= ["{appHostFile}"]
583
Args
= ["AppHost"],
591
Args
= ["--version"],
636
Args
= ["tsx", "{appHostFile}"]
655
Args
= ["--dir", "{appHostDir}"]
673
Args
= ["{appHostFile}"]
693
Args
= ["{args}"]
714
Execute = new CommandSpec { Command = "test-cmd",
Args
= ["{appHostFile}"] },
751
new CommandSpec { Command = "dotnet",
Args
= ["--version"] },
752
new CommandSpec { Command = "aspire-command-that-does-not-exist",
Args
= [] }
804
Args
= GetArguments("from-first-command"),
813
Args
= GetArguments("from-second-command"),
848
Execute = new CommandSpec { Command = "npx",
Args
= ["tsx", "{appHostFile}"] },
852
Args
= ["install"],
885
Args
= ["tsx", "{appHostFile}"],
1150
Args
= ["--tsconfig", migrationFileName, "{appHostFile}"]
1198
Args
= ["--tsconfig", migrationFileName, "{appHostFile}"]
1224
Args
= ["{appHostFile}"]
1444
execute: new CommandSpec { Command = "java",
Args
= ["AppHost"] },
1450
Args
= ["-d", "classes", "{appHostFile}"],
1599
execute: new CommandSpec { Command = "java",
Args
= ["AppHost"] },
1605
Args
= ["-d", "classes", "{appHostFile}"],
Projects\JavaAppHostToolchainResolverTests.cs (3)
61
Args
= ["--release", "25", "-d", ".java-build", "@.aspire/modules/sources.txt", "{appHostFile}"]
67
Args
= ["-cp", ".java-build", "AppHost"]
206
Args
= baseCompile.Args,
Projects\TypeScriptAppHostToolchainResolverTests.cs (4)
449
Args
= ["install"]
456
Args
= ["--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"]
462
Args
= ["--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"]
467
Args
= ["--no-install", "nodemon", "--exec", "npx --no-install tsx --tsconfig tsconfig.apphost.json {appHostFile}"]
TestServices\FakeAppHostServerSession.cs (1)
143
Execute = new CommandSpec { Command = "node",
Args
= ["apphost.js"] }
Aspire.Hosting.CodeGeneration.Go (1)
GoLanguageSupport.cs (1)
143
Args
= ["run", "."]
Aspire.Hosting.CodeGeneration.Java (2)
JavaLanguageSupport.cs (2)
296
Args
= [.. s_javacOptions, "-d", BuildOutputDirectory, $"@{GeneratedSourcesListPath}", "{appHostFile}"]
322
Args
= ["-cp", BuildOutputDirectory, AppHostClassName]
Aspire.Hosting.CodeGeneration.Java.Tests (1)
JavaLanguageSupportTests.cs (1)
55
Args
= ["--release", "25", "-d", ".java-build", "@.aspire/modules/sources.txt", "{appHostFile}"]
Aspire.Hosting.CodeGeneration.Python (7)
PythonLanguageSupport.cs (7)
186
Args
= ["venv", ".venv", "--allow-existing"]
192
Args
= ["pip", "sync", "pylock.apphost.toml"]
197
Args
= ["run", "python", "{appHostFile}", "{args}"]
222
Args
= initializeArgs
227
Args
= ["-m", "ensurepip", "--upgrade"]
233
Args
= ["-m", "pip", "install", "-r", "apphost_requirements.txt"]
238
Args
= ["{appHostFile}", "{args}"]
Aspire.Hosting.CodeGeneration.Rust (1)
RustLanguageSupport.cs (1)
153
Args
= ["run", "--bin", AppHostBinaryName, "--"]
Aspire.Hosting.CodeGeneration.TypeScript (4)
TypeScriptLanguageSupport.cs (4)
262
Args
= ["install"]
269
Args
= ["--no-install", "tsc", "--noEmit", "-p", AppHostTsConfigFileName]
275
Args
= ["--no-install", "tsx", "--tsconfig", AppHostTsConfigFileName, "{appHostFile}"]
280
Args
= [
51 references to Args
aspire (7)
Projects\GuestAppHostProject.cs (1)
2479
string.Join(" ", runtimeSpec.Execute.
Args
));
Projects\GuestRuntime.cs (4)
108
var args = ReplacePlaceholders(commandSpec.
Args
, null, directory, null);
156
var args = ReplacePlaceholders(command.
Args
, null, directory, null);
290
var args = ReplacePlaceholders(commandSpec.
Args
, appHostFile, directory, null);
587
var args = ReplacePlaceholders(commandSpec.
Args
, appHostFile, directory, additionalArgs);
Projects\JavaAppHostToolchainResolver.cs (1)
801
var baseArgs = baseCompile.
Args
?? [];
Projects\TypeScriptAppHostToolchainResolver.cs (1)
338
var args = runtimeSpec.Execute.
Args
;
Aspire.Cli.Tests (31)
Projects\JavaAppHostToolchainResolverTests.cs (16)
35
actual.
Args
);
41
Assert.Equal([wrapperPath, .. toolArgs], actual.
Args
);
165
compile.
Args
);
172
spec.Execute.
Args
);
173
Assert.DoesNotContain(spec.Execute.
Args
, arg => arg.Contains("{args}", StringComparison.Ordinal));
206
Args = baseCompile.
Args
,
268
compile.
Args
);
273
spec.Execute.
Args
);
640
foreach (var argument in command.
Args
)
858
Assert.Contains("-f", spec.InstallDependencies!.
Args
);
859
Assert.Contains(Path.Combine(toProjectRoot, "pom.xml"), spec.InstallDependencies.
Args
);
864
Assert.Contains($"-DoutputDirectory={Path.Combine("target", "aspire-deps")}", spec.InstallDependencies.
Args
);
876
Assert.Single(spec.PreExecute!).
Args
);
883
spec.Execute.
Args
);
903
var initScriptArgument = spec.InstallDependencies!.
Args
[Array.IndexOf(spec.InstallDependencies.
Args
, "--init-script") + 1];
Projects\TypeScriptAppHostToolchainResolverTests.cs (15)
358
Assert.Equal(["install"], runtimeSpec.InstallDependencies!.
Args
);
361
Assert.Equal(["run", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.
Args
);
363
Assert.Equal(["run", "{appHostFile}"], runtimeSpec.Execute.
Args
);
377
runtimeSpec.WatchExecute!.
Args
);
391
Assert.Equal(["run", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.
Args
);
393
Assert.Equal(["run", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"], runtimeSpec.Execute.
Args
);
395
Assert.Contains("yarn run tsc --noEmit -p tsconfig.apphost.json && yarn run tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", runtimeSpec.WatchExecute?.
Args
?? []);
407
Assert.Equal(["install", "--ignore-workspace"], installDependencies.
Args
);
410
Assert.Equal(["exec", "tsc", "--noEmit", "-p", "tsconfig.apphost.json"], preExecute.
Args
);
412
Assert.Equal(["exec", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}"], runtimeSpec.Execute.
Args
);
414
Assert.Contains("pnpm exec tsc --noEmit -p tsconfig.apphost.json && pnpm exec tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", runtimeSpec.WatchExecute?.
Args
?? []);
426
Assert.Equal(["install"], runtimeSpec.InstallDependencies!.
Args
);
429
Assert.Equal(["check", "--unstable-sloppy-imports", "{appHostFile}"], preExecute.
Args
);
431
Assert.Equal(["run", "-A", "--unstable-sloppy-imports", "{appHostFile}"], runtimeSpec.Execute.
Args
);
433
Assert.Equal(["run", "-A", "--unstable-sloppy-imports", "--check", "--watch", "{appHostFile}"], runtimeSpec.WatchExecute!.
Args
);
Aspire.Hosting.CodeGeneration.Java.Tests (3)
JavaLanguageSupportTests.cs (3)
26
var releaseArgumentIndex = Array.IndexOf(compile.
Args
, "--release");
28
Assert.InRange(releaseArgumentIndex, 0, compile.
Args
.Length - 2);
29
var runtimeRelease = compile.
Args
[releaseArgumentIndex + 1];
Aspire.Hosting.CodeGeneration.Rust.Tests (2)
RustLanguageSupportTests.cs (2)
88
Assert.Equal(["run", "--bin", "apphost", "--"], runtimeSpec.Execute.
Args
);
115
Assert.Equal(["run", "--bin", "apphost", "--"], runtimeSpec.Execute.
Args
);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (3)
TypeScriptLanguageSupportTests.cs (3)
262
Assert.Equal(new[] { "--no-install", "tsc", "--noEmit", "-p", "tsconfig.apphost.json" }, preExecute.
Args
);
263
Assert.Equal(new[] { "--no-install", "tsx", "--tsconfig", "tsconfig.apphost.json", "{appHostFile}" }, runtimeSpec.Execute.
Args
);
264
Assert.Contains("npx --no-install tsc --noEmit -p tsconfig.apphost.json && npx --no-install tsx --tsconfig tsconfig.apphost.json \"{appHostFile}\"", watchExecute.
Args
);
Aspire.Hosting.RemoteHost (1)
Language\IntegrationHostProcessLauncher.cs (1)
46
var startInfo = CreateProcessStartInfo(command!, hostSpec.Execute.
Args
, descriptor.HostEntryPoint, OperatingSystem.IsWindows());
Aspire.Hosting.RemoteHost.Tests (2)
CodeGenerationResolverTests.cs (2)
103
Assert.Equal(["--import", "tsx", "{entryPoint}"], spec.Execute.
Args
);
106
Assert.Equal(["install"], spec.InstallDependencies.
Args
);
Aspire.TypeSystem (2)
RuntimeSpec.cs (2)
135
/// absolute. Supports the same placeholders as <see cref="CommandSpec.
Args
" />.
148
/// working directory unless absolute. Supports the same placeholders as <see cref="CommandSpec.
Args
" />.