Remove memory-safety LangVersion=preview overrides when C# 16 is the default
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 46/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp
- 領域
- build-system
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C#
- スター
- 2.1k
- フォーク
- 581
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 243
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/android のほかの issue
-
Area: App+Library Build
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Area: Mono.Android
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
dotnet/android#9192 · コメント 4 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Area: App+Library Build needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
メンテナーはふだん 1 日以内に返信
-
Area: App+Library Build needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
dotnet/android#13148 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
.NET 11 RC2 MAUI app fails to compile (NativeAOT) with MAUI Community Toolkit対応中かも @simonrozsival が 1 日前に担当しました。 オープンArea: App+Library Build needs-triage
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
dotnet/android#13143 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Sector-Vestige/Sector-Vestige#476 ·
メンテナーはふだん 1 日以内に返信
-
S: Untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Trauma-Station/Trauma-Station#5058 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
HoffmanEngineering/3d-print-log-api#243 ·
メンテナーはふだん 1 日以内に返信
-
:books: documentation untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信