Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins: provide a DiagnosticAnalyzer to ensure IPlugin implementations follow some essential requirements. #103

Open
CaffeinatedCoder opened this issue May 21, 2023 · 0 comments

Comments

@CaffeinatedCoder
Copy link
Contributor

Coral's plugin system has three basic requirements that need to be met so that plugin implementations can be loaded and executed successfully:

  1. plugin assemblies must provide only a single class implementing IPlugin
  2. every implementation of IPlugin needs to be a public class ...
  3. ... and needs to provide a public, parameter-less constructor

One possible solution to make this possible would be providing a Roslyn analyzer, that prevents compiling code, that doesn't fulfill all of the aforemenioned prerequisites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant