R
richlm
I'm developing a snap-in for MMC 3.0 using .Net framework 2.0 and the new
MMC class library.
I need to store some configuration settings, ideally in a .config file
associated with my snap-in dll.
A couple of possible solutions:
1. Deploy an mmc.exe.config to %windir%\System32 - not really a workable
solution.
2. Open a configuration file explicitly as a "Configuration" instance using
e.g. ConfigurationManager.OpenMappedExeConfiguration. That's almost OK - but
the config file either needs to be in System32 or we have to hard-code a
path (or maybe get the path from Assembly.CodeBase).
The same issue would apply to other non-standard dll hosts.
Can anyone recommend a better approach?
Richard.
MMC class library.
I need to store some configuration settings, ideally in a .config file
associated with my snap-in dll.
A couple of possible solutions:
1. Deploy an mmc.exe.config to %windir%\System32 - not really a workable
solution.
2. Open a configuration file explicitly as a "Configuration" instance using
e.g. ConfigurationManager.OpenMappedExeConfiguration. That's almost OK - but
the config file either needs to be in System32 or we have to hard-code a
path (or maybe get the path from Assembly.CodeBase).
The same issue would apply to other non-standard dll hosts.
Can anyone recommend a better approach?
Richard.