Non-CLS compliant assemblies?

7 posts, 0 answers
  1. Oskar
    Oskar  avatar
    4 posts
    Member since:
    Apr 2007

    Posted 22 Aug 2007 Link to this post

    I am using Fx-Cop to increase the quality of the applications i develop. However Fx-Cop complains that the RadChart assembly which is included in my project (I suspect the same problem exists for other assemblies in the RadControls suite) is not CLS-compliant. This is minor issue for me, I just wanted to let you to know.

    Regards,
    Oskar
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 22 Aug 2007 Link to this post

    Hi Oskar ,

    You are completely right. This indeed an issue with the current version of the control. This, however, has already been addressed and the next release will have CLS compliant assemblies.

    Kind regards,
    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Eddy
    Eddy avatar
    3 posts
    Member since:
    Sep 2007

    Posted 16 Jun 2008 Link to this post

    [Edit to remove duplicate post]
  4. Eddy
    Eddy avatar
    3 posts
    Member since:
    Sep 2007

    Posted 16 Jun 2008 Link to this post

    Just an update on CLS compliance - we are using RadControls for WinForms Q1 2008 SP1 (version 6.1.0.0) and many of the DLLs still do not declare if they are CLS compliant or not (so default to false)

    DLLs marked compliant=true:
     Telerik.Charting
     Telerik.WinControls
     Telerik.WinControls.UI
     Telerik.WinControls.Themes.Aqua
     Telerik.WinControls.Themes.Desert

    DLLs not marked at all (i.e. default to false):
     RadControlSpy
     Telerik.WinControls.Docking
     Telerik.WinControls.GridView
     Telerik.WinControls.RadChart
     Telerik.WinControls.UI.Design
     TelerikCommon
     TelerikData
     VisualStyleBuilder.Design

    Note that these DLLs are not explicitly declared as non-compliant, they contain no declaration at all (so are treated as not compliant).

    Best practice (i.e. FXCop) is to at least explicitly mark as either CLS compliant or not (leaving unmarked is just sloppy).

    They probably are CLS compliant, unless you use a lot of unsigned values, override operators without providing an alternative or double up on members whose names only differ by case.

    All of these are bad practices that will hinder interoperability with the widest range of .NET languages and so should be avoided anyway, so they probably are not being used and it was simply lack of attention to detail to not mark the assemblies as CLS compliant.

    Not a big issue, but it would be nice to get them fixed and reduce the amount of unneeded warnings.

  5. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 19 Jun 2008 Link to this post

    Hi Igor,

    Thank you for the feedback.

    You are correct. There are small issues with CLS compliance, and we are going to address them in one of our future releases.

    Your Telerik points have been updated. If you have additional questions or thoughts that you want to share with us, feel free to contact me again.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 15 May 2009 Link to this post

    I too am running FXCop and notice that these are still not CLS complient. It's very difficult to ensure that we get a clean build when these assmeblies aren't marked CLS compliant. Is there a roadmap to resolving this? It's been two years since the first post about this I see.

    Thanks
  7. Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 18 May 2009 Link to this post

    Hello Chris Browning,

    Thank you for your vote. Generally, we have plans to make our assemblies CLS compliant. However, I still cannot provide you with any specific time-frame, since we have a very tight schedule regarding other important features and fixes. You can review our current Roadmap for Q2 2009 here.

    Kind regards,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top