Hi,
I’m using MIP 2014 SDK on C# platform and I will like to ask if there is a way for a plugin to have its own config file?
If so, do we need to add anything to the plugin.def file to point to that config file??
Thank you!
Hi,
I’m using MIP 2014 SDK on C# platform and I will like to ask if there is a way for a plugin to have its own config file?
If so, do we need to add anything to the plugin.def file to point to that config file??
Thank you!
Might this be that same question as - https://developer.milestonesys.com/s/question/0D50O00004BeE00SAF/config-file
Thanks Bo! Appreciate your help for this.
Hi,
I used in my project.
private System.Configuration.Configuration CustomConfig;
// Open Config file for getting parameters
string ConfigFile = Environment.CurrentDirectory + “[\\MIPPlugins\\Directory_Name_of_Plugin\\Plugin.dll.config](file://MIPPlugins//Directory_Name_of_Plugin//Plugin.dll.config)”;
ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap();
fileMap.ExeConfigFilename = ConfigFile;
CustomConfig = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None);
// Get Value from INI file
CustomConfig.AppSettings.Settings[“Is_Open_Full_Win”].Value
Best Regards
Syed Shahid Amin