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
<Using Remove..../> does not work in Uno.Sdk projects #18525
area/sdkCategorizes an issue or PR as relevant to the Uno.Sdkdifficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomerskind/bugSomething isn't workingkind/papercutIssue that is especially relevant to users beginning to use Uno
When implicit usings are enabled, <Using Remove="Uno.UI"/> appears to have no effect in Uno.Sdk projects.
Expected behavior
It should not add global using global::Uno.UI; to the auto-generated GlobalUsings.g.cs file.
How to reproduce it (as minimally and precisely as possible)
Add
<ItemGroup>
<UsingRemove="Uno.UI" />
</ItemGroup>
To the a csproj file that uses Uno.Sdk and notice that the global implicit using for Uno.UI is still added. Haven't tested it with any of the other implicit usings but if it does not work then it should.
Workaround
Needed to add a dummy class to the Uno.UI namespace so it doesn't error out in a library project using Uno.Sdk (I configured the -windows target not to have any Uno references).
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.
Still an issue on master. The Uno.Sdk adds its implicit Using items in Uno.Implicit.Namespaces.targets, which is imported from Sdk.targets, after the project file, so a <Using Remove="Uno.UI" /> in the project runs before the item it is meant to remove. The only way out today is DisableImplicitUnoNamespaces, which drops all of them. I'm preparing a PR so that Remove works and a namespace isn't added when nothing in the project provides it.
area/sdkCategorizes an issue or PR as relevant to the Uno.Sdkdifficulty/starter 🚀Categorizes an issue for which the difficulty level is reachable by newcomerskind/bugSomething isn't workingkind/papercutIssue that is especially relevant to users beginning to use Uno
Activity
github-actions commentedon May 7, 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 18, 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.
mikernet commentedon Oct 18, 2026
Still an issue on master. The Uno.Sdk adds its implicit
Usingitems inUno.Implicit.Namespaces.targets, which is imported fromSdk.targets, after the project file, so a<Using Remove="Uno.UI" />in the project runs before the item it is meant to remove. The only way out today isDisableImplicitUnoNamespaces, which drops all of them. I'm preparing a PR so thatRemoveworks and a namespace isn't added when nothing in the project provides it.fix(sdk): Let projects remove the Uno implicit usings