-
Notifications
You must be signed in to change notification settings - Fork 1.9k
XmlnsDefinitonAttribute is not supported for "this" assembly #28150
Copy link
Copy link
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorspartner/platform-toolsClient Experiences Platform ToolsClient Experiences Platform Toolss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
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
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorspartner/platform-toolsClient Experiences Platform ToolsClient Experiences Platform Toolss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done