Plugins in Modlr
No edit summary |
No edit summary |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
The | <message>Write the content here to display this box</message> | ||
The Modeling logic central to MDrivenDesigner and MDriven for VisualStudio has a Plugin infrastructure. | |||
The infrastructure is described in further detail here | The infrastructure is described in further detail here: [[Documentation:Modlr plugin|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 <u>replaced</u> with the new value '''20230125''' due to OneDrive 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) | ||
Line 17: | Line 18: | ||
LoadPlugInAssemblies(path); | LoadPlugInAssemblies(path); | ||
} | } | ||
As the code shows you can override that path by | As the code shows, you can override that path by creating a registry value: | ||
[[File:2018-01-08 10h57 06.png|none|thumb]] | [[File:2018-01-08 10h57 06.png|none|thumb|541x541px]] | ||
[[Category:MDriven Designer]] | |||
{{Edited|July|12|2025}} |
Latest revision as of 05:16, 3 February 2025
This page was created by Hans.karlsen@mdriven.net on 2018-01-08. Last edited by Stephanie@mdriven.net on 2025-02-03.
The Modeling 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 the new value 20230125 due to OneDrive 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 creating a registry value: