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

Create MEF analyzer that ensures exports are placed on supported types #11

Open
kzu opened this issue Oct 20, 2022 · 0 comments
Open

Create MEF analyzer that ensures exports are placed on supported types #11

kzu opened this issue Oct 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kzu
Copy link
Member

kzu commented Oct 20, 2022

For example, you could put a [Theme] attribute on a type (or property) that is not
of the expected target type ColorScheme, and this would only "fail" at run-time with
an invalid cast exception, which is clearly a bad experience.

The goal of this analyzer is to make the ThemeAnalyer general-purpose, so it can
diagnose any ExportAttribute-derived attribute and provide compile-time errors.

Back this issue
Back this issue

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

No branches or pull requests

1 participant