Completed
Last Updated: 28 Jul 2022 07:58 by ADMIN
Release R3 (LIB 2022.2.711)
Tomas Havetta
Created on: 11 Jul 2022 05:34
Category: Diagram, DiagramRibbonBar, DiagramToolBox
Type: Bug Report
0
RadDiagram: .NET 6 - PageOrientation ambiguous (RadDiagram vs RichTextEditor)
I found problem in .NET 6 components for Windows Forms.

When I try to use PageOrientation enum, I receive this error:

Error CS0433 The type 'PageOrientation' exists in both 'Telerik.WinControls.RadDiagram, Version=2022.2.622.60, Culture=neutral, PublicKeyToken=5bb2a467cbec794e' and 'Telerik.WinControls.RichTextEditor, Version=2022.2.622.60, Culture=neutral, PublicKeyToken=5bb2a467cbec794e'

I looked into the source code and indeed found the same enum in the same namespace in both projects. 
4 comments
Tomas Havetta
Posted on: 11 Jul 2022 11:42

OK, now it is clear.

Tomas

ADMIN
Hristo
Posted on: 11 Jul 2022 11:36

Hi Tomas,

The PageOrientation is not relevant to the RadDiagram and it was mistakenly copied to the .NET Core version of the assemblies so we will remove it. The diagram is not using it anywhere so deleting it will not create a dependency towards the RadRichTextEditor.

Regards,
Hristo
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


Tomas Havetta
Posted on: 11 Jul 2022 10:33

Hi,

 

remove PageOrientation from RadDiagram create dependency between RichTextEditor and RadDiagram assemblies. Better will be change namespace for RadDiagram PageOrientation enum.

Tomas

ADMIN
Hristo
Posted on: 11 Jul 2022 05:44

Hello Tomas,

Indeed the type is defined in both assemblies, while it's not really needed in the diagram. We will remove the PageOrientation type from the Telerik.WinControls.RadDiagram assembly.

Regards,
Hristo
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.