How to publish environment specific appsettings in .Net core app?
If someone else is wondering how to use different appsettings for multiple environments here is a possible solution. dotnet publish –configuration [Debug|Release] will copy the appropriate appsettings.json file into the publish folder if *.csproj has a conditional logic for these files: First in the .pubxml publish profile file (can be found in Properties->PublishProfiles of Visual … Read more