Plugins in Modlr

The Modelling logic central to MDrivenDesigner and MDriven for VisualStudio has a Plugin infrastructure.

The infrastructure is described in further detail here https://www.capableobjects.com/2011/05/22/modlr-plugin/ and here https://www.capableobjects.com/2011/02/16/modlr-plugins/

It loads plugins located in the path decided by this code:

private const string RegKeyName = @"Software\CapableObjects\Modlr";
public static void LoadPlugIns()
{
  string path = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
  path += @"\CapableObjects\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:

2018-01-08 10h57 06.png
This page was edited 79 days ago on 02/10/2024. What links here