Last post Jun 18, 2009 04:27 AM by Thomas Sun – MSFT
Jun 15, 2009 04:54 AM|stmarti|LINK
I have a web.config file with:
In the wdp project file I have a WebConfigReplacementFile element which try to replace the above appSettings with this one:
<appSettings configSource="some path" />
Wdp build fails with: ...Unrecognized attribute 'configSource'. Note that attribute names are case-sensitive...
Is this a bug in wdp or a limitation?
Jun 18, 2009 04:27 AM|Thomas Sun – MSFT|LINK
To update the Web.config file by replacing existing sections with elements that reference a .config file, please enable "Use external configuration source file" option.
For example, the web.config contains appSettings section:
<add key="test" value="AAA"></add>
And there is a config file named SourceConfig.config, containing:
<add key="New1" value="BBB"></add>
In the Web Deployment project, we can directly type appSettings=SourceConfig.config in
Web.config file section replacements TextBox.
After build Web Deployment project, the web.config will become:
<appSettings configSource="SourceConfig.config" />
I look forward to receiving your test results.