Description
Description
XmlnsDefinitonAttribute
's are ignored for "this" assembly
Steps to Reproduce
- New MAUI app.
- Add MyLabel.cs containing following code
[assembly: XmlnsDefinition("http://consoto.com", "MyApp.Controls")]
namespace MyApp.Controls
{
public class MyLabel : Label { }
}
- Open MainPage.xaml.
- Add
xmlns:o="http://consoto.com"
to root element. - Replace any of
<Label ...>
with<o:MyLabel ...>
. - Build and run.
Expected: no build errors, app runs fine, MyLabel is created (can see in in Live Visual Tree).
Actual: "type not found http://consoto.com:MyLabel" build error
Link to public reproduction project repository
No response
Version with bug
9.0.40 SR4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android, Windows, macOS
Affected platform versions
No response
Did you find any workaround?
No response