5

I'd like to share my VS2010 3.5 Web Apps settings with my Console App's (2 projects in the same solution).

eg connection string, smtp, log4net settings

This looked close:

http://devlicio.us/blogs/derik_whittaker/archive/2008/04/15/how-to-share-configuration-files-between-projects.aspx

Dave Mateer
  • 6,588
  • 15
  • 76
  • 125
  • The format of the files is slightly different which would probably make it really difficult to share settings across each project. – Marko Aug 24 '10 at 02:08

1 Answers1

0

The big difference is step 1 (save your special settings in external .config files)

  1. Put your shared .config into external files (attribute on element: configSource="mySpecialConfig.config")
  2. Add the files in a common folder in your solution
  3. Add the files as linked items to each project
Peter Gfader
  • 7,673
  • 8
  • 55
  • 56
  • Many thanks.. I'm using the new web.debug.config etc.. transformations in VS2010, which are really quite good. Think I'll just go manual with the console app.config for now :-) – Dave Mateer Aug 25 '10 at 09:31