Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C#
 How to: Add Application Configurati...
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Visual C# Development Environment 
How to: Add Application Configuration Files to C# Projects 

You can customize how the common language runtime locates and loads assembly files by adding application configuration files (app.config files) to your C# projects. For more information about application configuration files, see How the Runtime Locates Assemblies.

When you build your project, the development environment automatically creates a copy of your app.config file, changes its file name so that it has the same file name as your executable, and then moves the new .config file in the bin directory.

To add an application configuration file to your C# project

  1. On the Project menu, click Add New Item.

    The Add New Item dialog box appears.

  2. Select the Application Configuration File template and then click Add.

    A file named app.config is added to your project.

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker