App.config replacements for unit tests

后端 未结 3 1074
终归单人心
终归单人心 2021-02-02 00:38

my continuous integration server (TeamCity) is configured to run all the unit tests in our app on build. Prior to running those tests, i need to change some of the appSettings t

3条回答
  •  抹茶落季
    2021-02-02 01:13

    I have created a Visual Studio add in which can be used to transform app.config in the same way that web.config is transformed. You can find the add-in, SlowCheetah, at http://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5.

    I have posted a blog about how to get this working on a build server as well.

提交回复
热议问题