Remove memory-safety LangVersion=preview overrides when C# 16 is the default
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
- 46/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start by reading the four listed project files and the linked migrations #13070 and #13078 to understand which LangVersion=preview and memory-safety settings they introduced. Check the repository’s normal language-version policy and confirm C# 16 is the default before changing anything. Done means applicable temporary overrides are removed, unrelated compiler switches and safe-caller rejection remain intact, and the affected tests pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Android framework version
Other — repository build configuration; not a customer application framework issue.
Affected platform version
The repository SDK/compiler once C# 16 is the default language version. The memory-safety migration currently uses SDK 12.0.100-alpha.1.26480.102 with project-local LangVersion=preview overrides.
Description
Track removal of the temporary <LangVersion>preview</LangVersion> overrides introduced for the updated C# memory-safety model once C# 16 is the repository's default and the migrated code no longer requires preview language features.
Requested by @jonathanpeppers in this review comment. Related migrations: #13070 and #13078.
Current overrides to revisit:
external/Java.Interop/src/Java.Interop/Java.Interop.csprojsrc/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.csprojsrc/Microsoft.Android.Build.Tasks/Microsoft.Android.Build.Tasks.csprojtools/tmt/tmt.csproj
When the prerequisite is met, audit any additional overrides introduced by subsequent memory-safety migrations, remove those no longer needed, and inherit the repository's normal language-version policy. Do not replace them with another permanent project-local language-version pin.
Completion criteria:
- The repository compiler's normal language-version policy selects C# 16 or later, and the migrated syntax is supported without
preview. - All applicable temporary overrides are removed while unrelated compiler feature switches remain intact. Reassess
updated-memory-safety-rulesseparately; removingLangVersion=previewmust not accidentally disable the memory-safety model. - Affected projects and relevant existing tests pass, and safe-caller rejection of caller-unsafe APIs is preserved.
Steps to Reproduce
Inspect the project-local LangVersion=preview declarations added by the linked migrations. They are intentional today; this issue tracks their cleanup after C# 16 becomes the default.
Did you find any workaround?
Keep the preview overrides until the prerequisite is satisfied.
Relevant log output
N/A — future build-configuration cleanup, not a current build failure.
- Ngôn ngữ chính
- C#
- Star
- 2.1k
- Fork
- 579
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 228
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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/android
-
Area: App+Library Build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
EditText.getText() isn't boundĐang mởArea: Mono.Android
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
dotnet/android#9192 · 4 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 51/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Area: App Runtime
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 63/100
dotnet/android#13247 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agentic-workflows needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 43/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/android
Issue tương tự
-
area-multitenancy area-security p1-recommended priority-high technical-debt
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
help wanted needs-unity ready for a contributor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
eyalgolan/statecraft-israel#1542 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/enhancement Provider Upgrade pulumi/pulumi-azure R1 Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
pulumi/pulumi-azure#3669 ·
-
[BUG] FromCString causes 1 byte OOB read in native codeCó thể đã có người làm @mattleibow đã nhận hôm nay. Đang mởtype/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
mono/SkiaSharp#5426 · 1 reaction · 2 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày