dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Error CS0234 : The type or namespace name 'Compatibility' does not exist in the namespace 'Microsoft.Maui.Controls.Handlers' #25846

Closed dzebas closed 1 week ago

dzebas commented 1 week ago

Description

Hello,

Upgraded Microsoft.Maui.Controls and Controls.Compatability to 9.0.0 and now getting these errors when building:

Error CS0234 : The type or namespace name 'Compatibility' does not exist in the namespace 'Microsoft.Maui.Controls.Handlers' (are you missing an assembly reference?)

Error CS0234 : The type or namespace name 'iOS' does not exist in the namespace 'Microsoft.Maui.Controls.Compatibility.Platform' (are you missing an assembly reference?)

Steps to Reproduce

  1. Create new MAUI app
  2. Make sure Microsft.Maui.Controls and Controls.Compatability is version 9.0.0
  3. Try building, you get errors

Link to public reproduction project repository

No response

Version with bug

9.0.0 GA

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.93 SR9.3

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No workaround.

Relevant log output