ATL_DEV
ATL_DEV

Reputation: 9591

How do I create 1 .NET Settings per instance of DLL

My service is a DLL and it can be installed multiple times. The DLL has its settings stored in Settings.settings. Each instance of the DLL will have its own Settings.settings. Can this be done with Settings.settings, or do I have to create my own configuration scheme? I want to avoid reinventing the wheel if possible. I don't have to necessarily have separate files, just a mechanism for allowing me to load the correct settings for the correct instance of the DLL.

Upvotes: 1

Views: 181

Answers (1)

derek
derek

Reputation: 4886

perhaps you could use an app.config that will get installed in the same directory as your service: http://www.codeproject.com/KB/dotnet/dllappconfig.aspx

Upvotes: 1

Related Questions