I'm trying to set up an IIS deployment step in my deploy process and I'm having trouble getting the right value to load into a web.config for a .netframework web app.
In my web config I have
<appsettings>
<add key="hostname" value=""/>
</appsettings>
My goal is for it to end up like this
<appsettings>
<add key="hostname" value="servername"/>
</appsettings>
I have the configuration variables feature turned on for the step, have enabled the "replace entries in .config files" option on, and imported a variable set that has a variable named "hostname" with a value of "servername"
I tried deploying it just as above but it didn't seem to do any transformation at all
I tried adding a project level variable named "hostname" with a value of "#{hostname}" but that gave me this result.
<appsettings>
<add key="hostname" value="#{hostname}"/>
</appsettings>
The second one tells me that it recognizes the project level variable but it isn't recognizing the value as a variable. Is there something I'm missing to get it to recognize the #{hostname} value as a variable set variable?