Plugins in Modlr
No edit summary |
Hans Karlsen (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
The infrastructure is described in further detail here [[Modlr plugin]] | The infrastructure is described in further detail here [[Modlr plugin]] | ||
It loads plugins located in the path decided by this code: | It loads plugins located in the path decided by this code: (Strikeout is replaced with new value 20230125 due to one drive sync issues) | ||
private const string RegKeyName = @"Software\CapableObjects\Modlr"; | private const string RegKeyName = @"Software\CapableObjects\Modlr"; | ||
public static void LoadPlugIns() | public static void LoadPlugIns() | ||
{ | { | ||
string path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData); | string path = Environment.GetFolderPath(Environment.SpecialFolder.<s>CommonApplicationData.</s>LocalApplicationData); | ||
path += @"\CapableObjects\Plugins"; | path += @"\<s>CapableObjects\</s>MDriven\Plugins"; | ||
Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(RegKeyName); | Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(RegKeyName); | ||
if (key != null) | if (key != null) |
Revision as of 10:42, 25 January 2023
The Modelling logic central to MDrivenDesigner and MDriven for VisualStudio has a Plugin infrastructure.
The infrastructure is described in further detail here Modlr plugin
It loads plugins located in the path decided by this code: (Strikeout is replaced with new value 20230125 due to one drive sync issues)
private const string RegKeyName = @"Software\CapableObjects\Modlr"; public static void LoadPlugIns() { string path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData.LocalApplicationData); path += @"\CapableObjects\MDriven\Plugins"; Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(RegKeyName); if (key != null) { path = key.GetValue("PluginPath",path) as string; } System.IO.Directory.CreateDirectory(path); LoadPlugInAssemblies(path); }
As the code shows you can override that path by createing a registry value:
This page was edited more than 11 months ago on 02/10/2024. What links here