gRPS .NET 6 service on Release doesn't pick up applicationUrl from launchSettings.json and listens by default - localhost:5000 and 5001 for https. How and where to set up a release so that it picks up the launchSettings.json in VS2022?
launchSettings.json is used only for development environment. From the docs:
The
launchSettings.jsonfile:
- Is only used on the local development machine.
- Is not deployed.
- Contains profile settings.
For non-development environment options check the Use multiple environments in ASP.NET Core article.
Also can be useful:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With