Suggestion: Code Analysis Rules?

Dec 1, 2008 at 7:03 PM
Do you have any plans for MEF specific code analysis rules?  There are lots of gotcha's that we keep running into which would be helped by code analysis rules.  We've created a few ourselves, but we were wondering if you have considered creating a set as well?  Rules like:

1. Must be a public class with public constructors to be exported
2. Imported properties need to be public
3. You should not instance types are exported with the new operator
4. Maybe something that checks the export metadata
...
Dec 1, 2008 at 9:38 PM
Yes, we do in fact have a set of FxCop rules that enforce some of the aspects you mentioned. I don't believe we released them to CodePlex yet (and as of right now they are somewhat stale), but we are expecting that they will be a part of the final deliverable.
Thanks
O.