Attach and Access config file for Class Library

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Murali Krishna. Siruvuru (MuraliKrishnaSiruvuru_at_discussions.microsoft.com)
Date: 10/06/04


Date: Wed, 6 Oct 2004 03:55:02 -0700

Hi,

Is there a way in which we can attach a configuration file for a "Class
Library Project" and access its values dynamically.

I understand that Class Library would generate a .dll and cannot have other
configuration files. But can we add this "App.config" file as a "embedded
resource" and then access it?

I have used "ConfigurationSettings.AppSettings" and "AppSettingsReader",
but i am not able to achieve the result.

Appreciate your help

-- 
IT Expert, R&D Department,
Hanwha S&C, Seoul


Relevant Pages

  • Re: Attach and Access config file for Class Library
    ... Richard Blewett - DevelopMentor ... Is there a way in which we can attach a configuration file for a "Class ... Library Project" and access its values dynamically. ...
    (microsoft.public.dotnet.framework)
  • Re: Attach and Access config file for Class Library
    ... LoadConfig method inside the class needing it (it may be a singleton for ... Florida Department Of Transportation ... > Is there a way in which we can attach a configuration file for a "Class ... > Library Project" and access its values dynamically. ...
    (microsoft.public.dotnet.framework)