How to: Set Up Configuration Information for an Office Solution
You can use configuration files to configure settings that are specific to your Office solutions. You can specify settings such as assembly binding policy, remoting objects, debug, and trace settings.
Applies to: The information in this topic applies to document-level projects and application-level projects for Microsoft Office 2010 and the 2007 Microsoft Office system. For more information, see Features Available by Office Application and Project Type.
Your computer might show different names or locations for some of the Visual Studio user interface elements in the following instructions. The Visual Studio edition that you have and the settings that you use determine these elements. For more information, see Visual Studio Settings.
To add a configuration file to your Office project
On the Project menu, click Add New Item.
In the Categories pane, click General.
In the Templates pane, select Application Configuration File.
In the Name box, type the same name as the assembly plus the extension .config. For example, a configuration file for an Excel project assembly called ExcelWorkbook1.dll would be named ExcelWorkbook1.dll.config.
Create your configuration file according to the application configuration file schema. For more information, see Configuration File Schema for the .NET Framework.
There are no special considerations for using configuration files with Office projects.