Sharing Config settings between Web App and Console App
问题 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 回答1: The big difference is step 1 (save your special settings in external .config files) Put your shared .config into external files (attribute on element: configSource="mySpecialConfig.config") Add the files in