merken / Prise

A .NET Plugin Framework.
https://merken.github.io/Prise
MIT License
362 stars 39 forks source link

Is it possible to have a simple plugin sample for a Console App? #23

Closed gigios closed 4 years ago

gigios commented 4 years ago

I'm searching to use this framework to manage some plugins in a .NET Core console app (.NET Core 3.1) I'm sure that the problem is on my side, but I'm not able to adapt the code from your samples to my application.

Is it possible to have a simple sample for a Console App?

In my app I obtain this error: "System.TypeLoadException: 'Declaration referenced in a method implementation cannot be a final method....."

merken commented 4 years ago

Hi,

This framework has been designed to run in a webapplication by design, using the plugins as small-scoped services.

However, there's an Avalonia example, the setup is basically the same as a Console app: https://github.com/merken/Prise.Examples/tree/master/AvaloniaAppWithPlugin/AppHost

Cheers, Maarten

merken commented 4 years ago

Closing this issue due to inactivity