Lately I got in a discussion with my colleague whether the appsettings.Development.json should be added to the git repository or not.
My considerations are: when a developer clones a repository to his development machine and builds the application, he should be able to run the application without any tweaking of the settings. That's what the appsettings.Development.json file is for: providing settings for a Development machine, so the application can be executed, tested (and debugged) locally.
However, the questioned appsettings.Development.json contained some absolute paths to files, which is bad because not every developer uses the same directory structure on his machine. So, there is still some tweaking needed before the application can be executed. My colleague uses this as an argument that the appsettings.Development.json should not be added to the git repository and that every developer should create his own appsettings.Development.json file by looking at the appsettings.json and replacing the values in that file as needed.
(Both the appsettings.Development.json and the appsettings.json do not contain any security data or passwords; the first one because it has only development settings and the second one only contains tokens that must be replaced during deployment.)
On the internet, there was almost nothing to find about this subject. So my question is: should the appsettings.Development.json be in the repository or not?