I use the new VS 2010 configuration transformations to deploy websites. To replace a single setting of my ApplicationSettings I use the following configuration transformation:
<setting name="TempPath" serializeAs="String" xdt:Transform="Replace" xdt:Locator="Match(name)">
<value>C:\TEMP</value>
</setting>
Remark: There is no white space between C:\TEMP and the end tag
This transformation results in a setting with unwanted white space like this:
<setting name="TempPath" serializeAs="String">
<value>C:\TEMP
</value>
</setting>
If I use this setting without trimming it, I get faulty behaviour.
Any idea?