Open Closed

appsettings.<Environment>.json not working #729


User avatar
0
JmBdo created

We want developers using appsettings.json for their local development and using appsettings.<Environment>.json to overwrite settings in different environments, based on the ASPNETCORE_ENVIRONMENT variable.

<br> It seems not working out of box.

What is the easiest way to make this work?

Best regards!


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It has nothing todo with ABP and it works out of the box.

  • User Avatar
    0
    JmBdo created

    Thanks @liangshiwei, it works in local. But after deploying it to Azure app services, we still have to use DevOps tasks to update the app settings. We will investigate more.

  • User Avatar
    0
    alper created
    Support Team Director

    it's probably related to your Azure settings. because it's a native feature of dotnet core. ABP doesn't add anything on top of aspnet configuration feature.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on June 20, 2025, 11:20