Attach and Access config file for Class Library
From: Murali Krishna. Siruvuru (MuraliKrishnaSiruvuru_at_discussions.microsoft.com)
Date: 10/06/04
- Next message: Shell: "HttpWebRequest throws exception, but HaveResponse is true?"
- Previous message: Jon Skeet [C# MVP]: "Re: Can I pre-compile dlls on my machine and distribute them?"
- Next in thread: Richard Blewett [DevelopMentor]: "Re: Attach and Access config file for Class Library"
- Reply: Richard Blewett [DevelopMentor]: "Re: Attach and Access config file for Class Library"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Attach and Access config file for Class Library"
- Reply: Nick Malik: "Re: Attach and Access config file for Class Library"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Shell: "HttpWebRequest throws exception, but HaveResponse is true?"
- Previous message: Jon Skeet [C# MVP]: "Re: Can I pre-compile dlls on my machine and distribute them?"
- Next in thread: Richard Blewett [DevelopMentor]: "Re: Attach and Access config file for Class Library"
- Reply: Richard Blewett [DevelopMentor]: "Re: Attach and Access config file for Class Library"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Attach and Access config file for Class Library"
- Reply: Nick Malik: "Re: Attach and Access config file for Class Library"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|