要件に合わせて調整する必要がありますが、これを行うために私のプロジェクトの 1 つで使用するコードを次に示します。
var fileMap = new ConfigurationFileMap("pathtoconfigfile");
var configuration = ConfigurationManager.OpenMappedMachineConfiguration(fileMap);
var sectionGroup = configuration.GetSectionGroup("applicationSettings"); // This is the section group name, change to your needs
var section = (ClientSettingsSection)sectionGroup.Sections.Get("MyTarget.Namespace.Properties.Settings"); // This is the section name, change to your needs
var setting = section.Settings.Get("SettingName"); // This is the setting name, change to your needs
return setting.Value.ValueXml.InnerText;
有効な .net 構成ファイルを読み取っていることに注意してください。このコードを使用して、DLL から EXE の構成ファイルを読み取ります。これが質問で提供した設定ファイルの例で機能するかどうかはわかりませんが、良いスタートになるはずです。