Home > Net >  How can developers have different appsettings.development.json settings?
How can developers have different appsettings.development.json settings?

Time:04-01

I have a main web application and a Web API application. (The first application calls the API of the second application.) When running locally, Visual Studio is configured to lauch both applications.

My appsettings.development.json file overrides the URL of the API website when running locally. This is working fine.

But now another developer is running these projects on his system. When he does, the URL of the API website is different than on my system.

How can this developer configure a different URL in appsettings.development.json without overwriting my settings when he checks it in?

CodePudding user response:

I assume you use a Code versioning control tool. I will assume you use git. If it's not the case, you SHOULD use a Versioning Control tool, if it's not git, check how you can "ignore" specific files.

You should not track the appSettings.development.json and add it to your .gitignore (see You can choose which setting to use when running application

  • Related