DEV Community

Bruce Axtens
Bruce Axtens

Posted on

1 1

Google.Protobuf.dll is right next to my .dll but it is not being found or loaded

I have a Framework 4.8 C# app that uses ClearScript to allow JavaScript to be used as an extension language. I am able to write plugins as DLLs and attach them at runtime, viz

JSE.Script.attach = (Func<string, bool>)Attach
        private static bool Attach(string dllPath, string name = "")
        {
            var

Top comments (1)

Collapse
 
bugmagnet profile image
Bruce Axtens

So the "solution" turned out to be this: Include Google.Ads.GoogleAds in the project. That's all. This mean the full set of DLLs end up next to the EXE and that seemed to be all that was needed. This is a bit of a drag as I was wanting to keep these DLLs in a separate, plugin-specific, folder.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay