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)
295dashboardResource = new ExecutableResource(KnownResourceNames.AspireDashboard, fullyQualifiedDashboardPath, dashboardWorkingDirectory ?? ""); 329dashboardResource = new ExecutableResource(KnownResourceNames.AspireDashboard, "dotnet", dashboardWorkingDirectory ?? "");
Exec\ExecResourceManager.cs (1)
203var executable = new ExecutableResource(execResourceName, exe, projectDir);
ExecutableResourceBuilderExtensions.cs (1)
60var executable = new ExecutableResource(name, command, workingDirectory);
Aspire.Hosting.Foundry (1)
HostedAgent\AzurePromptAgentResource.cs (1)
23public AzurePromptAgentResource([ResourceName] string name, string model, string? instructions) : base(name, "python", "")
Aspire.Hosting.Tests (6)
Dashboard\DashboardLifecycleHookTests.cs (1)
187var 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!)); 117var er = new ExecutableResource("name", command: "cmd", workingDirectory: "");
ResourceNotificationTests.cs (1)
59nameof(ExecutableResource) => new ExecutableResource("test", "cmd", "."),