Analyzers and suppressors
The following analyzers and suppressors 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 |
| VSMEF013 | Suppress IDE0044 for MEF imported fields |
| VSMEF014 | Suppress CS8618 for MEF importing members on exported parts |
| VSMEF015 | Metadata view interface should be source-generated |
| VSMEF016 | Referenced metadata view interface should be source-generated |
| VSMEF017 | Invalid [MetadataView] usage |
| VSMEF018 | Suppress CS0649 for MEF imported fields on exported parts |