I use the UI for WPF (version 2020.3.1020) with a .NET Core 3.1 application on Windows 10. I get my Telerik assemblies directly from the Telerik NuGet servers. This has been working well for about a year.
I tried to upgrade my projects to .NET 5 and it does not compile. Whereever I use Telerik types, I get build errors like this:
(345,17,345,53): error CA1416:
'SelectionRange<double>'
is
supported on
'Windows'
7.0 and later
(1031,23,1031,31): error CA1416:
'CartesianPlotBandAnnotation.Axis.get'
is
supported on
'Windows'
7.0 and later
I've seen on Telerik's own page that they at least support the .NET 5 Preview
Telerik UI for WPF also provides assemblies for .NET 5.0 Preview (since R2 2020) and .NET 5.0 Release Candidate 1 (RC1) (since R3 2020).
So I'm wondering how I can make my project work with the official .NET 5? Is this supported yet?
5 Answers, 1 is accepted
It's OK with me -- to disable the warning -- but it does make me miss other instances of this warning that I would like to see. If there is an alternative approach I can use it would be great to know about it.
Hello Joe,
Thank you for the provided information.
I searched our backlog, however we have not previously received similar reports. That said, disabling the warning seems like a valid approach for the scenario.
On a side note, you can also take a look at the following github issue: Targeting net5.0-windows still causes 'API X is supported on windows' errors, where a similar behavior was discussed.
Hope you find this helpful.
Regards,
Vladimir Stoyanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
I don't really see that as problematic as we don't advertise our product as working on anything less than WIndows 10 but if you need something before Windows 7 I guess that could be an issue
Hello Tony,
The approach of disabling the CA1416 warning is the suggested one in this scenario.
On a side note, .NET 5 does not support versions of Windows earlier than Windows 7. You can find more information about this here: .NET 5 - Supported OS versions.
Regards,
Vladimir Stoyanov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.