Asp.net core mvc how to configure environment varibles and how to set db conectionstring based on staging or production.
how to write appsettiongjson
how to write launch setting json
Asp.net core mvc how to configure environment varibles and how to set db conectionstring based on staging or production.
how to write appsettiongjson
how to write launch setting json
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Naresh BeniwalPosted Nov 9, 2022, 9:33 AM
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-7.0
Vishal JoshiPosted Nov 8, 2022, 12:34 PM
Hello,
You can check the below link for environment variables to set a database connection for staging and production. Also how to write launchsetting.json, appsettiong.json file, etc.
https://www.c-sharpcorner.com/article/app-settings-file-according-to-environment-variable-dotnet-core-api/
Thanks