C
C#•3d ago
TauFrisch

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
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
TauFrisch
TauFrischOP•3d ago
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
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
TauFrisch
TauFrischOP•3d ago
Nice, thanks for pointing that out! That's basically exactly what I need! Thanks 🙂
Unknown User
Unknown User•3d ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX•3d ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?