I'm using Octopus Deploy to deploy ASP.NET 5 websites to Azure based on this guide: https://gist.github.com/alfhenrik/ee08dbb1fb6e2bc7f772
I'm trying to find a way to transform configuration files but haven't found any elegant solutions yet. Currently my best suggestion is to have an appsettings.json with config used in the local dev environment and an appsettings.Release.json which is an exact copy of appsettings.json where all values are octopus variables like #{myVariableName}. Then when deploying with Octopus we have a pre-deployment script that replaces appsettings.json with appsettings.Release.json and then run variable substitutions on appsettings.json.
Any better suggestions?