This is a migrated thread and some comments may be shown as answers.

Non-CLS compliant assemblies?

6 Answers 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Oskar
Top achievements
Rank 1
Oskar asked on 22 Aug 2007, 12:24 PM
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

6 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 22 Aug 2007, 02:58 PM
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
0
Eddy
Top achievements
Rank 1
answered on 16 Jun 2008, 11:42 PM
[Edit to remove duplicate post]
0
Eddy
Top achievements
Rank 1
answered on 16 Jun 2008, 11:42 PM

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.

0
Nikolay
Telerik team
answered on 19 Jun 2008, 02:20 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 15 May 2009, 01:28 PM
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
0
Nikolay
Telerik team
answered on 18 May 2009, 04:57 PM
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.
Tags
General Discussions
Asked by
Oskar
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Eddy
Top achievements
Rank 1
Nikolay
Telerik team
Richard Slade
Top achievements
Rank 2
Share this question
or