You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ApiExtensionAttribute not registering extension types #22568
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verification
Given a blank or recommended app, using the [ApiExtension] attribute for any type is not generating the global::Uno.Foundation.Extensibility.ApiExtensibility.Register(...) call as part of the generated code for the App.xaml.
Example:
Create a blank Uno app
Define a MyProvider class that implements IWebAuthenticationBrokerProvider
Add the assembly-level attribute: [assembly: Uno.Foundation.Extensibility.ApiExtension(typeof(IWebAuthenticationBrokerProvider), typeof(MyProvider))]
Inspect generated code of the App class for the XamlCodeGenerator. Notice that there is no line anywhere in the generated code that is similar to: global::Uno.Foundation.Extensibility.ApiExtensibility.Register(typeof(global::Uno.AuthenticationBroker.IWebAuthenticationBrokerProvider), o => new MyProvider(o));
Workarounds
You need to manually add the ApiExtensibility.Register(...) call to the App.xaml.cs. Either in the constructor or in OnLaunched.
for the repro app, note the first line of the OnLaunched method in App.xaml.cs: ApiExtensibility.Register(typeof(IWebAuthenticationBrokerProvider), _ => new MyProvider());
If you were to comment that line out, the app will crash when pressing on the Click Me button in the MainPage
changed the title [-]ApiExtensionAttribute not registering extensions types[/-][+]ApiExtensionAttribute not registering extension types[/+]on Feb 4, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.
difficulty/tbdCategorizes an issue for which the difficulty level needs to be defined.triage/untriagedIndicates an issue requires triaging or verification
Activity
[-]ApiExtensionAttribute not registering extensions types[/-][+]ApiExtensionAttribute not registering extension types[/+]jeromelaban commentedon Feb 4, 2026
The registration discovery is currently done on dependents, not on the app assembly itself.
github-actions commentedon Jun 5, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.
github-actions commentedon Oct 4, 2026
This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.