[VB2k5] dll settings

  • Thread starter Thread starter Szafranr
  • Start date Start date
S

Szafranr

Hi,

I want to use settings in my dll to modify this without compilation.
I use this settings in application and VS2k5 add "AppName.exe.config" to
compiled folder and every thing works.

For dll's settings VS2k5 don't create similar file, but I try copy
app.config to compiled folder with name "DllName.dll.config".
Unfortunately settings from this file aren't load.

How can I manage this problem?

For now I used VS2k5 Beta2

Regards
Szafranr
 
you have to put the dll settings in the main applications app.config file.
 
you have to put the dll settings in the main applications app.config file.

I try to do this, but i have still errors when application try to read
settings :-(

I try insert all text from app.config of my DLL to file MainApp.exe.config
<configuration>
[...]
</configuration>

and I try move only section
<configSections>
[...]
</configSections>
<system.diagnostics>
[...]
</system.diagnostics>
<userSettings>
[...]
</userSettings>
<applicationSettings>
[...]
</applicationSettings>
to
<configuration> section in MainApp.exe.config

How I should properly move this settings to MainApp.exe.config file?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top