How to share the same Visual Studio project between different solutions? Various options app.config and setttings.settings

The name does not fully describe the actual question, since I tried to find a fairly detailed description in a single line.

I have a C # project that I want to split between two different solutions (.sln). A project is an application with a basic method. This requires the use of settings.settings and app.config. For each of the two solutions, a link to the same C # project is required, but for each solution, the app.config and settings.settings parameters must be specific to their solutions. Therefore, if project C is split between solutions A and B, A includes C, where C has app.config specific to A and B includes the same exact project C, but C has app.config specific to C. There is is there a way to do this? I try not to copy the same project (i.e. C) to two different locations, because if I update this project in one solution, then I have to make the same changes to another solution.

thank

+5
source share
2 answers

, , . (, C) SVN TFS. , , ( ) - app.config /, . app.config, C, 2 , C ApplicationSettings app.config. ApplicatonSettings, .

codeplex: http://wcfsilverlighthelper.codeplex.com/

, . ApplicationSettings , app.config T4 .

+2

, Open...() ConfigurationManager . ( , App.config): D1 D2 B C main() D1 D2 . App.config D1 D2 C App.config.

+3

All Articles