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
Post a Comment