This project has moved. For the latest updates, please go here.
1. Make a file called <TheAddInName>.xll.config with this in:
        <add key = "Test" value="Forty-two" /> 

2. In your project, add a reference to the System.Configuration

3. In your library add some function to access the settings:
internal static string GetAppSetting(string key) 
  object setting = 
  if (setting == null) 
    return "!! INVALID KEY !!"; 
  return setting.ToString(); 

4. If you run ExcelDnaPack to pack the add-in into a single file, the .xll.config file will automatically be packed too. At runtime, if a .xll.config file is present, it will be used. Otherwise the packed .config file will be used as the configuration for for the add-in's AppDomain.

Last edited Dec 16, 2013 at 7:27 PM by govert, version 2