Skarn Posted October 20, 2021 Share Posted October 20, 2021 Hi, when trying to load additional references and assemblies for my plugin project, Launchbox will log: FIRST CHANCE EXCEPTION: Could not load file or assembly 'WHATEVER'. The system cannot find the file specified. at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, RuntimeAssembly assemblyContext, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, StackCrawlMark& stackMark, AssemblyLoadContext assemblyLoadContext) Where is Launchbox looking for the additional referenced assembly dlls? I can move them there to see if it works. I've tried the root folder and the core sub folder. Thanks for any assistance. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted October 20, 2021 Share Posted October 20, 2021 If your plugin is using a 3rd party WHATEVER.dll, you should be able to just place it in the same location along with your plugin. Quote Link to comment Share on other sites More sharing options...
Skarn Posted October 20, 2021 Author Share Posted October 20, 2021 Unfortunately this doesn't seem to work and Launchbox tries to initialise the dll as a plugin too. Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted October 20, 2021 Share Posted October 20, 2021 1 hour ago, Skarn said: Launchbox tries to initialise the dll as a plugin too. Oh snap!! Didn't even think about that. 😊 Quote Link to comment Share on other sites More sharing options...
Fry Posted October 21, 2021 Share Posted October 21, 2021 (edited) 20 hours ago, Skarn said: Unfortunately this doesn't seem to work and Launchbox tries to initialise the dll as a plugin too. What is your referenced DLL? Is it implementing one of the LaunchBox plugin interfaces? If not, I don't think LaunchBox/BigBox should be loading it as a plug-in. This has worked for me for any 3rd party DLL references. For example, my plug-in is eclipse.dll. It uses System.Speech.dll for voice recognition and WpfAnimatedGif.dll to display an animated gif while the voice recognition is listening. They just sit in the LaunchBox/Plugins folder next to my plugin. My project is .net framework and not .net core so maybe that's a difference? If the DLL isn't implementing a LB/BB plugin interface, I can't see why LB/BB would be loading it. Edited October 21, 2021 by Fry I'm a verbose weirdo Quote Link to comment Share on other sites More sharing options...
Skarn Posted October 21, 2021 Author Share Posted October 21, 2021 Hmm. I'll give it another try. Quote Link to comment Share on other sites More sharing options...
Skarn Posted October 31, 2021 Author Share Posted October 31, 2021 I was trying to use a webview but I suspect it was clashing with the already existing cefsharp in launchbox. So I am just using Launchbox's one now. I may still end up needing another dll (I don't right now) and I'll report back if I have any issues again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.