Thanks for the reply, but that isn't really what I'm looking for. I'm familiar with web configs and the configuration manager. My problem relates to C# class libraries. They don't allow the settings file to be modified at runtime and my typed datasets use the application settings file to determine the connection string. I would like to dynamically set the connection string property based on the application environment at runtime. Cheers.
B
birdman1234
@birdman1234
Posts
-
C# Class Library - Updating Application Settings -
C# Class Library - Updating Application SettingsLooking for a workaround :rolleyes: ......I'm trying to update the settings file for a C# class library at runtime. Specifically, I'm trying to update the connectionstring setting for my typed datasets. Microsoft officially doesn't support this functionality in C# (click here) "Because there is no configuration file model for class libraries, application settings do not apply for Class Library projects. The exception is a Visual Studio Tools for Office DLL project, which can have a configuration file." I could create a custom config file but how do I get my typed datasets to reference it?? Thanks, Kevin