How to automatically refresh the app.config RRS feed

  • Question

  • Hi All,

    We have two test method and two methods are reading the environment name from app.config. At a run-time we are changing the  environment name in app.config. New changed values are not able to fetch it. how will get the new modified values without any code.


    Wednesday, March 13, 2013 5:04 PM


  • Hello Woodson,

    I would like to know if you are doing data driven unit test and using a configuration file to define a data source like this article: Walkthrough: Using a Configuration File to Define a Data Source.

    If yes, as far as I know, we need to create and define the data source first and then use it in test method. If you want it to use the changed environment name in app.config during running test without code, I am afraid that there is no options to support it in VS.

    To help you resolve this issue, you could submit this feature request:


    The Visual Studio product team is listening to user voice there. You can send your ideas/suggestions there and people can vote.

    Thanks for your understanding.

    Best regards,

    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Amanda Zhu Tuesday, March 19, 2013 9:56 AM
    Thursday, March 14, 2013 5:10 AM