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

Telerik UI Controls for WPF assemblies not CLS-compliant

5 Answers 62 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joao
Top achievements
Rank 1
Joao asked on 03 Aug 2012, 08:12 PM

Hi,

I am using "Telerik UI controls for WPF" (v2012.2.725.40).

I am writing code in my assemblies which have their assembly attribute "System.CLSCompliant" set to True. Those assemblies can be redistributed to other teams using other programming languages (I used C#).
I wanted to expose some public members with return values and/or parameters such as 'RadDocument' or 'Telerik.Windows.Controls.DocumentViewManager'.

There was a compile warning which in my case was transform as error (because we use "treat warning as error" in our projects).

I have got 2 choices (if you know other ways, please let me know):
1) Look at the inheritance (implementation or interface) and try to find a CLS-compliant type. If not, then use 'object' for the return type or paramter.
2) I can set the attribute "System.CLSCompliant" to false at the method or property which raised the warning, but then I am preventing the users of my assemblies to have access to those methods.
 

# What is the main reason why Telerik assemblies for WPF (I do not know about the other products) are not compiled with "System.CLSCompliant(True)"?

# Is there a plan to mark your Telerik assemblies for WPF with the CLS-compliant?

I had a look and search on the web for this issue, but could not find a good answer.

Thank you,
Joao

5 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 08 Aug 2012, 01:57 PM
Hello Joao,

We missed to mark only few of our assemblies as CLSCompliant(true), including Telerik.Windows.Document.dll assembly. Anyway, we will do our best to fix this for the internal build next week.  So you will be able to download it and to try it.

All the best,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Joao
Top achievements
Rank 1
answered on 08 Aug 2012, 03:44 PM
Ok. Thank you Yana.

Joao
0
Joao
Top achievements
Rank 1
answered on 21 Aug 2012, 09:05 AM
Hello Yana,

Is there a build available that I can use?

Thank you
Joao
0
Yana
Telerik team
answered on 21 Aug 2012, 11:38 AM
Hello Joao,

You can download the latest internal build from your account:
http://www.telerik.com/account/your-products/internal-builds.aspx

Download RadControls_for_WPF_2012_2_0820_TRIAL_hotfix and give it a try.

Greetings,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Joao
Top achievements
Rank 1
answered on 28 Aug 2012, 01:55 PM
Thank you.
I will do.

Joao
Tags
General Discussions
Asked by
Joao
Top achievements
Rank 1
Answers by
Yana
Telerik team
Joao
Top achievements
Rank 1
Share this question
or