This documentation is archived and is not being maintained.

How to: Set Up Configuration Information for an Office Solution

You can use configuration files to configure settings that are specific to your Microsoft Visual Studio 2005 Tools for the Microsoft Office System solution. You can specify settings such as assembly binding policy, remoting objects, debug, and trace settings.


The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To add a configuration file to your Office project

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

  2. Select Application Configuration File in the Templates pane.

  3. In the Name box, type in 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.

  4. Click Add.

  5. 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 Visual Studio Tools for Office projects.

See Also