Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ".WithManualStart()" to ResourceBuilder #7053

Closed
dvlprx opened this issue Jan 9, 2025 · 2 comments
Closed

Add ".WithManualStart()" to ResourceBuilder #7053

dvlprx opened this issue Jan 9, 2025 · 2 comments
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Comments

@dvlprx
Copy link

dvlprx commented Jan 9, 2025

Is your feature request related to a problem? Please describe the problem.

We do have some desktop applications (wpf, winforms, ..), that get started along with the rest of the system, to provide some not-always-used functionality. For example, there is a wpf log viewer.

Aspire auto-starts all configured apps automatically, which is a little bit annoying.

Describe the solution you'd like

It would be very nice, to have a .WithManualStart() option for configured aspire components, to let the user start them manually if needed, like this:

builder.AddProject<Projects.Some_Wpf_App>("SomeWpfApp")
.WithManualStart()

@afscrome
Copy link
Contributor

afscrome commented Jan 9, 2025

See #5851, #7043.

Another option is to look at custom command calling Process.Start() - e.g. rather than having a log viewer application as it's own resource, it may make sense to add it as a resource command on the thing it's viewing logs for.

https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/custom-resource-commands

@davidfowl
Copy link
Member

Dupe

@davidfowl davidfowl closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 13, 2025
@github-actions github-actions bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Mar 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

No branches or pull requests

3 participants