Can we share some contents of App.config between projects?

前端 未结 5 1399
忘了有多久
忘了有多久 2020-12-10 10:40

I have two independent projects in my Visual Studio 2008 solution. Both has its own App.config. But in one project, I need one or two properties defined in another project\'

5条回答
  •  误落风尘
    2020-12-10 11:06

    Something I like to do, especially when trying to coordinate ServiceModel elements between libraries and tests is to use configSource to fragment the config in the target library and simply link/copy always the fragments in my test projects.

    That way I only maintain in one location.

    You could take it one step farther and simply have a common directory in the solution and link the fragments in all projects.

提交回复
热议问题