App.config for release and another for debug RRS feed

  • Question

  • Hi All,

    I would like to create a app config for debug and release. I want my installation program to replace settings for release mode builds, so I would like to setup two app configurations. In other words my app.config for debug would contain something lilke...

    <add key="ServiceUri" value="http://localhost:14314" />

    and then for release mode I have a variable that would be replace by the installation and would look something like this...

    <add key="ServiceUri" value="&lt;ServiceUri&gt;" />

    So I want to have an easy way to specify two different configurations. I am using Visual Studio 2015, but would definitely want something that will be compatible with 2017.

    Does anybody have any suggestions?



    • Edited by Thomas Lee3 Tuesday, February 13, 2018 9:57 PM
    Tuesday, February 13, 2018 9:56 PM


All replies