Free mag vol1 | Page 588

CHAPTER 14  BUILDING AND CONFIGURING CLASS LIBRARIES Figure 14-11. Inserting a new XML configuration file If you open this file for viewing, you’ll see a minimal set of instructions, to which you will add additional elements: Now, here is the cool thing. Each time you compile your project, Visual Studio will automatically copy the data in App.config to a new file in the \bin\Debug directory using the proper naming convention (such as CSharpCarClient.exe.config). However, this behavior will happen only if your configuration file is indeed named App.config; see Figure 14-12. 530