- I have values that need to be replaced which are located in configSections as opposed to appSettings or connectionStrings. From reading the other posts, it looks like I will need to write a custom PowerShell script to transform these - correct?
So for example in the configuration snipped below, is it true that I would have to write a PowerShell script to replace the connectionString in the DomainConfig entry or is there some other way to do it?
Assuming this is the case - how can PowerShell know where the config files are installed? The built-in variables don’t appear to work.
This just prints null
<configuration> <configSections> <section name="DomainConfig" type="SomeApp.NHibernate.DomainConfig, SomeApp"/> </configSections> <DomainConfig ConnectionString="Data Source=.;Initial Catalog=qc_core;Integrated Security=SSPI" /> </configuration>