Questions tagged [web-release-config]

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>



For more information visit:

Web.config Transformation Syntax for Web Application Project Deployment

4 questions
6
votes
2 answers

Why am I receiving the required attribute 'name' is missing warning in my Web.Release.config XML-Document-Transform file?

I'm trying to remove all service endpoint mexHttpBinding nodes in my Web.Release.config file. I found this answer: (I copied from my code file, so it's actually formatted differently than the answer )
1
vote
1 answer

Web.Release.Config authentication attribute

I defined a WebApi which takes the credetianls from the browser, it works. After deploying it I have to edit the Authentication on the server from Anonymouns to Windows. I tried to add to the Web.Config.Release but…
Emaborsa
  • 2,360
  • 4
  • 28
  • 50
1
vote
1 answer

Has the XML-Document-Transform xmlns URL changed?

In your Web.Release.config or Web.Debug.config, right after ... you see ... When I browse to this URL, I receive the following…
0
votes
1 answer

Azure Web Job: msbuild: How to publish without Debug DLLs?

I have a Visual Studio solution comprising an Azure web app and some Azure web jobs. I have a command line script to publish an Azure web job. My problem is that the publish script builds the software and pulls in Debug DLLs instead of Release DLLs.…
Jay Godse
  • 15,163
  • 16
  • 84
  • 131