Web.Release.config is an XML transform file that specifies how the Web.config file should be changed when it is deployed in Release mode.
Web.Release.config is an XML transform file that specifies how the Web.config file should be changed when it is deployed in Release mode.
Note: These transforms are typically ones that you want to do before you go to production.
EXAMPLE 1
In the example below, the RemoveAttributes
transform will remove the debug
attribute from the <compilation>
node under the <system.web>
node of your Web.config file.
Note that because there is only one <compilation>
node under the <system.web>
node, there is no need to use the xdt:Locator
attribute.
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
</system.web>
EXAMPLE 2
In the example below, the RemoveAll
transform will remove all <endpoint>
nodes when the Match
locator finds an attribute binding
that has a value of mexHttpBinding
.
<system.serviceModel>
<services>
<service>
<endpoint binding="mexHttpBinding"
xdt:Locator="Match(binding)"
xdt:Transform="RemoveAll" />
</service>
</services>
</system.serviceModel>