Launch an api project multiple times with different appsettings with Aspire
I have an asp.net project X which should talk with multiple other asp.net projects Ys. I would like to start them all with Aspire, but I would need to give every instance of Y its own appsettings. Is this a possiblity with Aspire? I saw that I can run a project with different launchprofiles, but I'm not sure how that could help me in my situation. Thanks for the help!
6 Replies
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
True, the WithArgs() extension should do the job 🙂
How would you do it with env vars? Only way which comes to my mind is doing it with different launchsettings.
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
Nice, thanks for pointing that out! That's basically exactly what I need! Thanks 🙂
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
If you have no further questions, please use /close to mark the forum thread as answered