It seems that there is a really annoying issue in Class Diagram designer in VS (my version is 2010 Ultimate, release, but the issue is also observed in VS 2008).
When I'm trying to create a class diagram for particular simple class from DLL I'm getting the following error: "Some of the selected type(s) cannot be added to the class diagram. Check the code for errors and ensure that all required assemblies ... blah-blah-blah". I cannot find the root cause for the issue and I cannot distinguish what characteristics of classes influence on that error (it can actually build a class diagram for some classes, but not for all).
My code doesn't contain any error. I have multiple class and interface definitions in one separate .cs file, but these classes are really simple - even no calls to unmanaged/interop.
Any solution for this?