I have constructed a .NET plugin and have successfully been able to call commands within it by netload-ing it. My plugin creates a palette (visuals are UserControls) and it'll display it.
However, my plugin's DLL references a theme suite Material Design In Xaml Toolkit (
https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit). Typically this is easy to use in a regular WPFapp by adding the resources in the app.xaml file and using the pack URI scheme to be able to load the resource dictionaries, as outlined in the Super Quick Start guide, (
https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/wiki/Super-Quick-Start) . I do the same and add the resources to my user control as such:
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.Grey.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.DeepOrange.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
So what I am realizing is that with the pack://application, it'll never seem to find the DLLs. I have also tried pack://siteoforigin, and I still can't manipulate the path to be able to recognize the additional dlls.
The question is, what must be done to be able to reference 3rd party resources held in an external DLL .
I have tried various combinations of plain AutoCAD using a netload command in various locations, (actual ACAD.exe path, and even common ApplicationPlugins folder using both pack://application: and siteoforigin. As well as with Adv Steel and putting the DLLs in various locations, but no joy.
Does anyone have any working example of a Plugin that can reference and use a 3rd party control suite, or point me in the proper direction?