1

Resolved

Change default config file name to current module + .config

description

Visual Studio 2008 renames App.config files to the corresponding module file name appending the ".config" extension. The previous version looks for "App.config" only so this is not working with VS2008.
For fixing this issue, we need to change the default config file name as the full .Net System.Configuration, using the current module file name appending the ".config" extension.
Additionaly, we'll need to:
  • Include a ConfigFileName property on ConfigurationManager to allow an arbitrary config filename like "App.Config" for backward compatibility and tests.
  • The property can only be set if the configuration is not loaded yet.
  • Modify the unit tests that are using an aribtrary "App.config" as far as when running a unit test, the module name is the host and we need to force "App.config" as the config file name.

comments

josegallardo wrote Feb 5, 2009 at 6:27 PM

Done on ChangeSet 9000.

wrote Feb 5, 2009 at 6:27 PM

wrote Feb 14, 2013 at 12:09 AM

wrote May 16, 2013 at 5:56 AM

wrote May 16, 2013 at 5:56 AM

wrote Jun 14, 2013 at 7:57 AM