0

I have a set of projects (e.g., For DataProvider, Tests and Main).

I'm getting a SQL connection string from my app.config file using ConfigManager.

When I need to use this connection string in project other than Main, currently I need to copy-n-paste the connection string to next app.config.

Can I configure it so that all projects read the connection string from the main app.config file?

Thanks for your help!

John Hascall
  • 9,176
  • 6
  • 48
  • 72
mikroice90
  • 137
  • 1
  • 9
  • 5
    Dupe? http://stackoverflow.com/questions/1660502/share-a-connection-string-between-multiple-web-projects – Andy Wiesendanger Feb 04 '16 at 14:35
  • Possible duplicate of [single app.config multi-project c#](http://stackoverflow.com/questions/1361913/single-app-config-multi-project-c-sharp) – Rhys Feb 04 '16 at 14:35
  • http://stackoverflow.com/questions/487991/is-there-any-way-for-an-app-config-file-to-reference-another-full-config-file – Alan Samet Feb 04 '16 at 14:54

0 Answers0