Telerik UI for .NET MAUI pkg & MAUI Workload Mismatch Issue

1 Answer 209 Views
General Discussions
Scofield
Top achievements
Rank 2
Iron
Iron
Iron
Scofield asked on 09 Aug 2022, 12:57 AM

Hi Telerik Team,

I noticed that there is no more "Telerik UI for .NET MAUI pkg & MAUI Workload Mismatch Issue" like below in the latest version 2.3.0, my understanding is: Telerik UI for .NET MAUI pkg still has the dependency on MAUI Workload, but it did a good job on compatibility.

It will be perfect if you guys can share more insight or details about this improvement.

WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry.
WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI222: 0x80073b0f - Unspecified error occurred.

 

Note: version 2.3.0/version 2.2.0 worked with MAUI 419/449 and no matter what combination.

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Antoan
Telerik team
answered on 10 Aug 2022, 04:05 PM

Hi Scofield,

Thank you for the provided image.

Usually people receive such an error when there is difference in the version of WinAppSDK dependency. Currently we are targeting the same WinAppSDK version as the Microsoft Maui team uses for .NET MAUI, which results in the outcome you are seeing.

It just so happens that Microsoft hasn't changed the WinAppSDK in the last several releases, so if you're using a one-version-behind version of Telerik UI for MAUI, it won't cause that exception because it is the same WinAppSDK version. 

However, if Microsoft needs to update their WinAppSDK dependency, then our current version will become incompatible. In such a case is when we recompile on top of the latest .NET MAUI workload and release a new version.

Visual Example

To be even clearer, lets use some examples (note that version numbers are simplified for clarity and do not represent a real release

Our, good starting point

  • .NET MAUI v1 uses WinAppSDK 1.0
  • Telerik UI for Maui v1 uses WinAppSDK 1.0

Both of those use the same WinAppSDK package dependency on WinAppSDK 1.0. But what happens if .NET MAUI changes it? This will become a problem, causing the PRI build exception because the XAML resources in the WinAppSDK are clashing

  • .NET MAUI v2 uses WinAppSDK 1.1
  • Telerik UI for Maui v1 uses WinAppSDK 1.0 (is now incompatible)

We then release Telerik UI for MAUI v2 with the updated WinAppSDK dependency:

  • .NET MAUI v2 uses WinAppSDK 1.1
  • Telerik UI for Maui v2 uses WinAppSDK 1.1

To answer the question about why the recent versions of UI for MAUI keep working with .NET MAUI,  is simply because the WinAppSDK version has not been changed

  • .NET MAUI v3, v4, v4, v6, etc. uses WinAppSDK 1.1
  • Telerik UI for Maui v2 uses WinAppSDK 1.1

^ In this example, Telerik v2 will work with Microsoft v3, 4 or 5 because they're still using WinAppSDK 1.1

Important Note: This is just an example of why you are not getting the get the PRI compilation error anymore. It doesn't mean there won't any other breaking changes that you will need to use our updated version anyways.

I hope that gives some clarity.

Regards,
Antoan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Scofield
Top achievements
Rank 2
Iron
Iron
Iron
commented on 11 Aug 2022, 02:06 AM | edited

 

 

 

 

Hi Antoan,

Thanks for sharing these details and really appreciated it. and I'm just wondering where I can find which Telerik UI for Maui pkg version uses which WinAppSDK version, but I only can find the this MAUI workload dependency in release note.

Btw, I know we can check MAUI dependency in this way 

Antoan
Telerik team
commented on 11 Aug 2022, 02:03 PM

Hello Scofield,

The only thing you should be concerned about is the version of .NET MAUI that Telerik UI for MAUI is built with. This is why it is the only thing you will find in the release notes. If we were to list all the transitive dependencies on the release notes, it would be many paragraphs long.

Microsoft has said that they don't plan on introducing a higher dependency on the Window APP SDK because the current one as everything they need for .NET MAUI. Introducing a higher version dependency could leave some earlier version of Windows 10 off the supported OS list and that's not something they want to do unless absolutely necessary.

However, if you are interested in pursuing the lower level transitive dependency tree, then yes you can use the NuGet Package Manager's Dependencies list to explore. Another option you can use is the NuGetPackageExplorer/NuGetPackageExplorer: Create, update and deploy Nuget Packages with a GUI.

For any further information about the .NET MAUI SDK's dependencies, the Microsoft Q&A forums are the best place to discuss that. To understand the Telerik side of things, we always compile on top of the latest version of MAUI that is available at the time of our release.

I hope this answer gives some clarity.

Regards,
Antoan
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/.

Tags
General Discussions
Asked by
Scofield
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Antoan
Telerik team
Share this question
or