none
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...

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

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

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

    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?

    Thanks,

    Tom


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

Answers

All replies