VS 2012 Web.config Transformation and Solution Configuration Dropdown?

Posted on 2014-07-10
Last Modified: 2014-07-14
I have web.config Transformations working on Publish. I notice it doesn't seem to matter if I use the Solution Configuration drop-down and choose Debug or Release, on Publish the contents of web.release.config are always used...

Q. Where does the Solution Configuration (Debug/Release) dropdown come into play?
Question by:WorknHardr
    LVL 74

    Accepted Solution

    Do you have transforms in your solution? You should have one for each solution configuration you have in the drop-down box:


    Whenever you change the drop-down, then the corresponding transform should be applied.

    In your publish profile you also will select which solution configuration is applied:


    Author Comment

    Okay, I get it now. I was confusing the 'Solution Configuration (Debug/Release) with the Publishing location specific web.config settings.

    This way one could Publish
    1. Solution Configuration (Debug) using web.QA.config and specific Publish location
    2. Solution Configuration(Release) using web.QA.config and specific Publish location
    3. etc...

    Author Closing Comment

    Excellent! thx

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (…
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now