Appendix C. Configuring Applications

The Microsoft .NET Framework includes support for configuring applications by using XML configuration files; this appendix demonstrates how to make use of these.

Application Configuration Files

An application configuration file is stored in the same directory as the application it relates to. The file name is the name of the application with a .config extension. For example, an application named MyApplication.exe would have a configuration file named MyApplication.exe.config. For multifile assemblies, the configuration file should be named after the file that contains the manifest.

When an application requests configuration information, the common language runtime (CLR) tries to satisfy the request from the global ...

Get C# for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.