-
Notifications
You must be signed in to change notification settings - Fork 761
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
WinUI Android : Release build is flooded with "_x_ is generated by more than one managed type" errors #10722
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Comments
FWIW:
|
Thanks for the report. This is a duplicate of #9513 (caused by dotnet/android#7473). There is no fix for this at this time when using net7. Here's a bit of documentation for workarounds.
|
Thanks for the response and work around, @jeromelaban . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
Any WinUI Android project build, in Release Configuration, is flooded with the following error: "WinUI.Type is generated by more than one managed type. Please change the [Register] attribute so that the same Java type is not emitted".
Click me to see a small sample of the errors (1485 were generated when compiling the demo project):
Expected behavior
Release build successfully completes
How to reproduce it (as minimally and precisely as possible)
dotnet new unoapp -o AndroidRelease
cd AndroidRelease
AndroidRelease.sln
in VisualStudio 2022for your convenience, here is a demo solution
Workaround
None known at this time (please share if you have one)
Works on UWP/WinUI
Yes
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
Affected platforms
Android
IDE
Visual Studio 2022
IDE version
Version 17.4.2
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: