Search code examples
asp.netdeploymentweb-configweb-deployment

match element name in web.config transformation


I am trying to match element by element name, I have to change sessionState element timeout in release, but I cannot match it by any attribute value.

<sessionState timeout="5000"/>

How can I match this element in Web.Release.config?


Solution

  • this should work:

    <sessionState timeout="2000" 
     xdt:Transform="SetAttributes(timeout)">
    </sessionState>