Variable substitution for ApplicationSettings not working
See original GitHub issueIt seems that while appSettings are correctly substituted, applicationSettings are not.
Her in xmlvariablesubstituionutility.ts the code is iterating through a set of tags.
There appears to be special case code for configSections and connectionStrings https://github.com/Microsoft/vsts-tasks/blob/a698fb593f58fe733df94aa166a99ed3ea6dda5b/Tasks/Common/webdeployment-common/xmlvariablesubstitutionutility.ts#L125
and the rest of the code goes to updateXmlNodeAttribute https://github.com/Microsoft/vsts-tasks/blob/a698fb593f58fe733df94aa166a99ed3ea6dda5b/Tasks/Common/webdeployment-common/xmlvariablesubstitutionutility.ts#L178
It looks like updateXmlNodeAttribute is really designed for appSettings structures as:
<appSettings>
<add key="blat" value="blart"/>
</appSettings>
and not applicationSettings structures which look like:
<applicationSettings>
<myCustomSection>
<setting name="blat" serializeAs="String">
<value>blart</value>
</setting>
</myCustomSection>
</applicationSettings>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:22
Top GitHub Comments
We have skipped deployment of one release (M128) in between. Deployment of release M129 has been started and will be available in next 2 weeks to almost all rings.
Though I will not recommend to run a pre release version. But for you info in case of it’s blocking you below are the steps to achieve it.
Deploying copy of task by changing Task Id
Success!!! THANK YOU SO MUCH!