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