-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[X] global xmlns #28969
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
[X] global xmlns #28969
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 25 out of 28 changed files in this pull request and generated 2 comments.
Files not reviewed (3)
- src/Controls/docs/Microsoft.Maui.Controls/XmlnsDefinitionAttribute.xml: Language not supported
- src/Controls/src/Core/PublicAPI/net-ios/PublicAPI.Shipped.txt: Language not supported
- src/Controls/src/Core/PublicAPI/net/PublicAPI.Shipped.txt: Language not supported
/// <include file="../../docs/Microsoft.Maui.Controls/XmlnsDefinitionAttribute.xml" path="//Member[@MemberName='AssemblyName']/Docs/*" /> | ||
public string AssemblyName { get; set; } | ||
//TODO we need an analyzer to check before runtime | ||
if (target == "http://schemas.microsoft.com/winfx/2009/xaml" || target == "http://schemas.microsoft.com/winfx/2006/xaml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The XmlnsDefinitionAttribute constructor now uses a 'target' parameter instead of 'clrNamespace', which is a breaking change. Please verify that all consumers are updated accordingly and that the documentation and tests reflect this change.
Copilot uses AI. Check for mistakes.
21c132f
to
2856e87
Compare
6de9a5d
to
ec71e64
Compare
Allow aggregating multiple xmlns into a single new global http://schemas.microsoft.com/dotnet/maui/global using XmlnsDefinition attribute, like this ```csharp [assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "http://schemas.microsoft.com/dotnet/2021/maui")] ``` the x: xmlns can not be aggregated, as it serves important purposes for the parsers this also brings #28090 to fix #28150 - fixes #28150 - fixes #28843 - closes #28090
08282fd
to
b3cd16c
Compare
closing in favour of #29579 |
Description of Change
Allow aggregating multiple xmlns into a single new global http://schemas.microsoft.com/dotnet/maui/global using XmlnsDefinition attribute, like this
the x: xmlns can not be aggregated, as it serves important purposes for the parsers
this also brings #28090 to fix #28150
It uses a source generator, so this change is transparent to anyone consuming maui XAML, including tooling
Issues Fixed