mono/mono — pull request #1007 by ninjarobot (2014-04-28 05:05:55+00:00)
Title: AppSettings 'file' attribute now refers to a path relative to the config...

...uration file.

Per the '' documentation at http://msdn.microsoft.com/en-us/library/aa903313(v=vs.71).aspx, the 'file' attribute "specifies a relative path to an external file containing custom application configuration settings."

Previous to this commit, the file attribute attempts to load a file based on the current working directory, which is incorrect. It should be a file path relative to the application's configuration file. Since on *nix systems this may be a symlink to the .config file, we need to ensure the symlinks are followed on those platforms.
Also, the reading of the file is moved to a using { } block so it will be disposed properly in the event there is an error reading the file.

Since some users may be counting on the ability to specify an absolute path, this behavior continues to be supported.

This change is released under the MIT license.