Analyzers
The following analyzers are included in the
Microsoft.VisualStudio.Composition.Analyzers package
to help you avoid common mistakes while authoring MEF parts.
| ID | Title |
|---|---|
| VSMEF001 | Importing property must have setter |
| VSMEF002 | Avoid mixing MEF attribute libraries |
| VSMEF003 | Exported type not implemented by exporting class |
| VSMEF004 | Exported type missing importing constructor |
| VSMEF005 | Multiple importing constructors |
| VSMEF006 | Import nullability and AllowDefault mismatch |
| VSMEF007 | Duplicate import contract |
| VSMEF008 | Import contract type not assignable to member type |
| VSMEF009 | ImportMany on non-collection type |
| VSMEF010 | ImportMany with unsupported collection type in constructor |
| VSMEF011 | Both Import and ImportMany applied to same member |
| VSMEF012 | Disallow MEF attribute version |