Jump to content
LaunchBox Community Forums

Additional plugin references/assembly


Recommended Posts

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.

Link to comment
Share on other sites

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.

image.thumb.png.7c379e5e8a8cdb85e6f136473c663c64.png

Edited by Fry
I'm a verbose weirdo
Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...