AddIns and config files

AddIns and config files


I wan to use an app.config file for my c# addin.

I have added the key and value under app settings in the file
and my code is referencing them as

keyval = ConfigurationManager.AppSettings["key"];

In the runtime reading keyval is always null

Visual Studio has put my app.config file in projectX in my output folder as projectx.dll.config

what do I need to do to have ConfigurationManager read the projectx.dll.config ?


This is a migrated post! Originally posted on 01.11.2019 by user roger_novarctech. Please be aware that information can be outdated.