prom3theu5 / aspirational-manifests

Handle deployments of .NET Aspire AppHost Projects
MIT License
702 stars 36 forks source link

[Feature] Using launch profiles with aspirate generate #189

Closed christiannagel closed 6 months ago

christiannagel commented 6 months ago

🚀 Feature Description

As a developer, I'd like to select a launch profile, in order to use a specific app model definition with the .NET Aspire AppHost.

With the AppHost profile, multiple launch profiles are defined, e.g. Azure and OnPremises. Depending on the launch profile, different resources are defined in the app model. The AddProject method of the app-model allows to specify a launch profile name.

✔ Goals

🧰 Possible Solution

Workaround

I can create an Aspire manifest first, and use this manifest with aspirate generate

dotnet run --launch-profile OnPremises -- --publisher manifest --output-path onpremises-manifest.json

aspirate 0.7.3-preview

prom3theu5 commented 6 months ago

Absolutely! I'm away till Tuesday on AV. I'll implement the day I'm back

prom3theu5 commented 6 months ago

Just released this in v0.7.4-preview: https://github.com/prom3theu5/aspirational-manifests/releases/tag/v0.7.4-preview

christiannagel commented 6 months ago

@prom3theu5 this was really fast, and - also in your location - Tuesday didn't start yet! Thank you!

prom3theu5 commented 6 months ago

Yw. Aye not been back long but wanted a clear todo list going into tomorrow. First day back from a break is always some sort of fire-fighting 😃