Author Topic: Getting started with plugins in Win10  (Read 298 times)

Offline billo

  • Ewok
  • *
  • Posts: 23
    • View Profile
Getting started with plugins in Win10
« on: January 09, 2023, 15:13:56 pm »
I'm trying to create a plugin for CamBam Plus 1.0 in VS2019. I'm using the code from the tutorial:

As recommended, I used the link in: to install Framework 4.

That installs .Net Core 3.1, which supposedly contains many legacy frameworks, such as Framework 4.

Now when starting a new Project in VS2019, the Target Frameworks presented as options include: .Net Standard 2.0, and .Net Core 3.1. I chose .Net Core 3.1.

My first compile complained that System.Drawing.Common is not available. Reading online I see that adding that package with NuGet is the solution. The oldest version available was 4.5. I downloaded that and added it as a reference.

Now it compiles without errors or warnings.

I copied my plugin .dll and System.Drawing.Common to the plugins folder.

Upon starting CamBam I get the message: Could not load file or assembly 'System.Runtime, Version=, Culture=neutral, ...

I've used VS for 2 decades, but never with a mix of older components like this; so I am unfamiliar with assembly redirects and such.

Does anyone have advice on how to proceed?


Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 5156
  • Made in England
    • View Profile
Re: Getting started with plugins in Win10
« Reply #1 on: January 10, 2023, 21:52:02 pm »
Have a look here;

This is a sample plugin

This is a list of useful tools ( some of the links may be bad now)

With ILSpy you can see the code for all plugins listed here;

Filmed in Supermarionation