Telerik Maui release 9.0.0 create package conflicts

1 Answer 80 Views
General Discussions
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Marco asked on 09 Jan 2025, 01:12 PM

Hy,

I created a blank MAUI APP project in NET 9.0 and added the following dependencies:

Also adding the dependency to the Telerik package (the last version):

It reports the following warning to me:

Found conflicts between different versions of "System.Security.Cryptography.Pkcs" that could not be resolved.

If I remove the reference to the Telerik package, the warning disappears.

Any help?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Lance | Senior Manager Technical Support
Telerik team
answered on 09 Jan 2025, 02:38 PM

Hi Marco,

Thank you for reaching out. First, I should mention that you can remove the Maui.Controls.Compatibility package. It is not needed anymore in .NET 9, the legacy pieces have been removed (by both Microsoft controls and Telerik controls).

Okay, onto the issue at hand. I have recreated and cleaned up the warning, here's what it says:

Found conflicts between different versions of "System.Security.Cryptography.Pkcs" that could not be resolved.
There was a conflict between "System.Security.Cryptography.Pkcs, Version=6.0.0.0" and "System.Security.Cryptography.Pkcs, Version=8.0.0.0".
    "System.Security.Cryptography.Pkcs, Version=6.0.0.0" was chosen because it was primary and "System.Security.Cryptography.Pkcs, Version=8.0.0.0" was not.


References which depend on "System.Security.Cryptography.Pkcs, Version=6.0.0.0".
    system.security.cryptography.pkcs\6.0.4\lib\net6.0\System.Security.Cryptography.Pkcs.dll
      
      Project file item includes which caused reference "system.security.cryptography.pkcs\6.0.4\lib\net6.0\System.Security.Cryptography.Pkcs.dll".
        system.security.cryptography.pkcs\6.0.4\lib\net6.0\System.Security.Cryptography.Pkcs.dll
        
        
References which depend on or have been unified to "System.Security.Cryptography.Pkcs, Version=8.0.0.0".
    telerik.documents.fixed\2024.4.1106\lib\netstandard2.0\Telerik.Documents.Fixed.dll
      
      Project file item includes which caused reference "telerik.documents.fixed\2024.4.1106\lib\netstandard2.0\Telerik.Documents.Fixed.dll".
        telerik.documents.fixed\2024.4.1106\lib\netstandard2.0\Telerik.Documents.Fixed.dll
        telerik.documents.cmaputils\2024.4.1106\lib\netstandard2.0\Telerik.Documents.CMapUtils.dll
        telerik.documents.fixed.formatproviders.image.skia\2024.4.1106\lib\netstandard2.0\Telerik.Documents.Fixed.FormatProviders.Image.Skia.dll
        telerik.documents.flow.formatproviders.pdf\2024.4.1106\lib\netstandard2.0\Telerik.Documents.Flow.FormatProviders.Pdf.dll
        telerik.documents.spreadsheet.formatproviders.pdf\2024.4.1106\lib\netstandard2.0\Telerik.Documents.Spreadsheet.FormatProviders.Pdf.dll
        telerik.ui.for.maui\9.0.0\lib\net9.0-windows10.0.19041\Telerik.Maui.Controls.dll
        telerik.ui.for.maui\9.0.0\lib\net9.0-windows10.0.19041\Telerik.Maui.Controls.Compatibility.dll

I have added spaces between the sections and kept only the relevant part of the message. Then I added highlights so you can make the connection in the warnings. What this means is that the compilation chose .NET 6 version to compile with, but the Telerik packages use .NET Standard 2.0 (which supports up to the target SDK).

The reason you're seeing this is because there is something inside the Micrososoft.Maui.Controls package that is explicitly asking for the .NET 6 version of the Pcks package. All of our Telerik packages are under the .NET 8 group and will work with versions that are compatible with netstandard2.0.

I can't say for sure which Microsoft.Maui.Controls dependency is asking for the .NET 6 version of Pcks, but this isn't a concern at the moment. Unless you write custom code the explicitly needs the .NET 8 version of Pcks, which will conflict with the Microsoft's dependency, you are safe to move forward.

To be clear, if you remove the Telerik package, your project is still going to use the .NET 6 version of Pcks... but you just didn't know about it until now. This is fine for the Telerik dependencies, because netstandard2.0 includes .NET 6.

Regards,
Lance | Senior Manager Technical Support
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.

Patrick
Top achievements
Rank 2
commented on 21 Jan 2025, 11:03 PM | edited



  <PropertyGroup>
    <NoWarn>MSB3277;</NoWarn>
  </PropertyGroup>
Problem solved 😉
Tags
General Discussions
Asked by
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or