Updated: 8/16/15; 18:55:57


pedantic nuthatch
Life in a Northern Virginia suburb of Washington, D.C. B.M.A.T.C., and Etruscan typewriter erasers. Blogged by David Gorsline.

Friday, 9 September 2005

I really like the .NET-provided facilities for storing configuration information in App.config. The info is human-legible, and simple to retrieve with the ConfigurationSettings class. It's also a good thing that the deployed config file can't get separated from the executable that it belongs to, and yet there lies the rub. Most of the time you want to use multiple configs with the same executable in different environments (production vs. training vs. staging, etc.). But you can't do that when the name of the config file is lashed to the executable's name as myApp.exe.config.

Microsoft's advice in Deployment .NET (Patterns and Practices) seems to boil down to "keep multiple config files in your project, and rename the one you want to use when you deploy." Not very helpful. They also offer the Enterprise Library Configuration Application Block, which appears to be too heavyweight for the apps I'm building today. Nick Wienholt has started a series of articles on the problem. Paul Haley offers an extension to the format of App.config that provides for multiple run-time configurations that looks useful.

posted: 5:16:13 PM  




September 2005
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30  
Aug   Oct

just me
D. Gorsline, Proprietor

XFN Friendly

the ageless project

jenett.radio.console.v1.1
theme designed by
jenett.radio

Copyright 2003-2006 © David L. Gorsline