ConfigurationManager.ConnectionStrings and Octopus

In the Configuration Files page of the documentation, the example of the app.config is using name/value as the pair instead of name/connectionString, as documented in .NET for use with the .NET ConfigurationManager.ConnectionStrings class. Will Octopus still update the connectionStrings item identified by ‘name’ on the Variables page if the ‘connectionString’ attribute is used instead of ‘value’? When using ‘value’ the call to retrieve the ConfigurationManager.ConnectionStrings[0] will fail with:

Unrecognized attribute ‘value’. Note that attribute names are case-sensitive


Thanks for this. The documentation was wrong; we do actually replace the ‘connectionString’ attribute, not the ‘value’ attribute. I’ve fixed the documentation.