Is there a way to perform conditional configuration contemplating with Octopus?
For example, only inject the following section if some variable is defined in Octopus
<CustomSettings.Properties.Settings>
Bar
</CustomSettings.Properties.Settings>
Is this possible?
thanks
Conditionally inject the following section based upon Octopus variable:
<MySettings.Properties.Settings>
Bar
</MySettings.Properties.Settings>
Hi,
You’d need to use XML config transforms for that -
There are different examples of configuration transforms here:
http://msdn.microsoft.com/en-us/library/dd465326.aspx
Paul
Looks like this may do what we need:
<compilation #{if DebugEnabled}debug=“true”#{/if}>
thanks
Hi Scott,
Some customers create a variable such as IsEnvironment and set it to true and scope it to that environment
Then wrap the config in something like:
#{if IsEnvironment}
#{/if}
Vanessa