Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Missing attribute support for `<property>` manifest items.

Đang mở
#13,170 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, csharp
Lĩnh vực
mobile

Hướng nghiên cứu

The payload names no files or classes. Start by finding how the existing Application-level <property> support generates manifest entries, then how the Activity attribute creates <activity> nodes and where the merge duplicates them. Reproduce with the steps in the issue. Done means a C#-side way to declare a property on an activity produces one merged <activity> entry, and a maintainer agrees on the attribute API first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Area: Mono.Android needs-triage
Android framework version

net11.0-android (Preview)

Affected platform version

Net 10, 11

Description

Activity and Application supports many attributes that generates manifest items, like [Activity], [IntentFilter] etc. Android introduced a new manifest item for activities and application, https://developer.android.com/guide/topics/manifest/property-element a few versions back. Currently, it's only possible to set elements in nodes in manifest and not for nodes. The merging tool duplicates activity entries if you attempt to set it in the manifest file, and no attribute exists that allow the generator to create those entries for

A use case for this is support multi instance mode in the system ui, as explained here https://developer.android.com/develop/adaptive-apps/guides/support-desktop-windowing#multitasking_and_multi-instance https://developer.android.com/develop/ui/views/layout/support-multi-window-mode#multi-instance . Setting it in application scope will affect all activities, including those the user will not want to be created multiple times. Setting it in activity scope is currently not supported, thus this issue is created.

Steps to Reproduce
  1. Create a new Android application.
  2. Try adding an activity element in the manifest with the same name as the c# activity.
  3. Add a property element, like https://developer.android.com/develop/ui/views/layout/support-multi-window-mode#multi-instance .
  4. When build is complete, the generated manifest has 2 entries with the same activity name.
Did you find any workaround?

No response

Relevant log output

Ngôn ngữ chính
C#
Star
2.1k
Fork
581
Merge trung bình
1 ngày 21 giờ
Pull request đã merge (30 ngày)
241

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotnet/android

Tất cả issue của dotnet/android

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.