zigzag Posted March 26, 2004 Posted March 26, 2004 I was wondering how other folks handle a configuration file dependancy in libraries you have created. My case in point is that I have a basic data layer that checkec configuration.configsettings.appsettings... for a specific key in the appsettings section of the configuration file. Now, since I developed this, I know that I need to have this key available in the appsettings section of my config file, but how can I alert other developers of that fact? Create a specific exception? Include code that creates a configuration file with the needed key? Quote
*Gurus* Derek Stone Posted March 26, 2004 *Gurus* Posted March 26, 2004 You should provide documentation both inside (for Intellisense and the object browser) and externally (in a compiled help format, such as HTML Help). In addition, provide sample applications that the developers can look at. Most importantly, make sure that your assembly fails gracefully if the key isn't found. Catch the error, and rethrow it with a decent description and a link to more information. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.