Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kestrel launchSettings.json on Release in NET.6 VS2022

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?

like image 477
UNRE Avatar asked Oct 22 '25 00:10

UNRE


1 Answers

launchSettings.json is used only for development environment. From the docs:

The launchSettings.json file:

  • 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:

  • 5 ways to set the URLs for an ASP.NET Core app
  • Configure endpoints for the ASP.NET Core Kestrel web server
like image 154
Guru Stron Avatar answered Oct 24 '25 23:10

Guru Stron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!