Octopus Deploy is not merging my transformation file when deploying application

1.2k Views Asked by At

I have 3 transformation files in my mvc project called Web.Debug.config, Web.AWS QA.config, Web.Release.config. I have an environment called AWS QA. enter image description here I have checked both Configuration Variables and Configuration transforms in the Enable Features section of my build step, I have also added Web.AWS QA.config => Web.config to my Additional transforms section.

enter image description here

Yet, when i deploy to the AWS QA environment, i get what is in my normal web.config which is what i use when developing on my local machine, which does not include what i have in Web.AWS QA.config which is what i need. Am I missing something?

1

There are 1 best solutions below

1
On

I had the same issue. Add a powershell script to renam your files in octopus deploy using the Rename-Item command:

Rename-Item -Path "Web.AWS.QA.Config" -NewName "c:\yourpath\Web.config"

Hope it helps!