13 references to ExecutableResource
Aspire.Hosting (6)
ApplicationModel\DotnetToolResource.cs (1)
26
:
base
(name, "dotnet", ".")
ApplicationModel\ProjectRebuilderResource.cs (1)
23
:
base
(name, "dotnet", Path.GetDirectoryName(projectPath)!)
Dashboard\DashboardEventHandlers.cs (2)
295
dashboardResource = new
ExecutableResource
(KnownResourceNames.AspireDashboard, fullyQualifiedDashboardPath, dashboardWorkingDirectory ?? "");
329
dashboardResource = new
ExecutableResource
(KnownResourceNames.AspireDashboard, "dotnet", dashboardWorkingDirectory ?? "");
Exec\ExecResourceManager.cs (1)
203
var executable = new
ExecutableResource
(execResourceName, exe, projectDir);
ExecutableResourceBuilderExtensions.cs (1)
60
var executable = new
ExecutableResource
(name, command, workingDirectory);
Aspire.Hosting.Foundry (1)
HostedAgent\AzurePromptAgentResource.cs (1)
23
public AzurePromptAgentResource([ResourceName] string name, string model, string? instructions) :
base
(name, "python", "")
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (1)
187
var dashboardResource = new
ExecutableResource
("aspire-dashboard", "dashboard.exe", ".");
ExecutableResourceTests.cs (4)
104
=> Assert.Throws<ArgumentNullException>("command", () => new
ExecutableResource
("name", command: null!, workingDirectory: "."));
108
=> Assert.Throws<ArgumentException>("command", () => new
ExecutableResource
("name", command: "", workingDirectory: "."));
112
=> Assert.Throws<ArgumentNullException>("workingDirectory", () => new
ExecutableResource
("name", command: "cmd", workingDirectory: null!));
117
var er = new
ExecutableResource
("name", command: "cmd", workingDirectory: "");
ResourceNotificationTests.cs (1)
59
nameof(ExecutableResource) => new
ExecutableResource
("test", "cmd", "."),