aspire icon indicating copy to clipboard operation
aspire copied to clipboard

`aspire add` should give next steps when package is installed.

Open mitchdenny opened this issue 8 months ago • 3 comments

At the moment with the aspire add command we don't really give anyone next steps once they have installed a package. So folks may not necessarily know that they need to jump in and update Program.cs to make use of the hosting integration.

I think we should point people at some docs specific to each package. It might make sense to point at the README.md file on NuGet if we know that the package source was NuGet.

Example output:

aspire add redis
The [email protected] package was installed.
View the README.md at https://www.nuget.org/packages/Aspire.Hosting.Redis/9.0.0

mitchdenny avatar Mar 19 '25 03:03 mitchdenny

@maddymontaquila thoughts on this?

mitchdenny avatar Mar 19 '25 03:03 mitchdenny

@maddymontaquila thoughts on this?

oooo i like this. we could also give them the option to stick it in their app host for them if we wanted to get fancy. Or spit out sample code - ie

Successfully added Aspire.Hosting.Redis. To add to your app:

builder.AddRedis("name")

Learn more (docs link)

maddymontaquila avatar Mar 19 '25 12:03 maddymontaquila

Moving to 9.3.

mitchdenny avatar Apr 05 '25 11:04 mitchdenny