Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 9 projects should not reference Microsoft.Maui.Controls.Compatibility #618

Open
espenrl opened this issue Dec 20, 2024 · 0 comments
Open

Comments

@espenrl
Copy link

espenrl commented Dec 20, 2024

https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-9?view=net-maui-9.0#compatibility-layouts

According to above resource Microsoft.Maui.Controls.Compatibility is obsoleted and should not be referenced.

The compatibility layout classes in the Microsoft.Maui.Controls.Compatibility namespace have been obsoleted.

Then, remove the package reference for the Microsoft.Maui.Controls.Compatibility NuGet package, provided that your app doesn't use any types from this package.


Projects that uses both .NET 9 / MAUI and Esri.ArcGISRuntime.Toolkit.Maui are transitively including Microsoft.Maui.Controls.Compatibility, and are also forced to directly include it to get the correct version (and not 8.0.3 which Esri.ArcGISRuntime.Toolkit.Maui refers to).


Error when there is a version mismatch between Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility.

WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI175: 0x80073b0f - Processing Resources failed with error: Duplicate Entry.
WINAPPSDKGENERATEPROJECTPRIFILE : error : PRI277: 0x80073b0f - Conflicting values for resource 'Files/Microsoft.Maui.Controls/Compatibility/Handlers/TableView/Windows/TableViewStyles.xbf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants