I have a step called “DEPLOY A PACKAGE”, also in my package it has following files web.config, web.dev.config, web.staging.config, web.prod.config, web.azure.dev.config, web.azure.staging.config and web.azure.prod.config
We used octopus to deploy on-premises changes only, so I want to transform web.#{Environment}.config to web.config. But it should exclude
web.azure.#{Environment}.config from transformation. How to do it. Is it possible to achieve through .NET Configuration Transforms section.
I expect you should be able to do this by disabling the automatic transform tickbox within the step, as this uses a wildcard that will detect all of the config files and instead use the Additional Transforms box to set an explicit transform pattern. Something like web.#{Octopus.Environment.Name}.config => web.config should work.