msbuild - How-to Transform Web.config Custom Sections With MSDeploy? -


is there way transform web.config custom sections values when using msdeploy ?

  <configsections>     <sectiongroup name="mygroup">       <section name="data" type="myapp.dataconfigurationsection, myapp.data" />     </sectiongroup>   </configsections>    <mygroup>     <data interval="3" usecache="true" />   </mygroup> 

according build configuration need exemple change "usecache" value.

write transformation in config transformation file (web.config.release)

<?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.com/xml-document-transform">   <mygroup>     <data usecache="false" xdt:transform="setattributes(usecache)" />   </mygroup> </configuration> 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -