From fb4879e83aaec7c8a9feb1d7f21af914f2aa4029 Mon Sep 17 00:00:00 2001 From: Widthdom Date: Mon, 1 Jun 2026 01:42:43 +0900 Subject: [PATCH 1/3] Fix IL3050 test build warnings (#2786) --- Directory.Build.props | 2 +- changelog.d/unreleased/2786.fixed.md | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 changelog.d/unreleased/2786.fixed.md diff --git a/Directory.Build.props b/Directory.Build.props index a2ba2e8677..a462a46534 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -14,7 +14,7 @@ --> true true - $(WarningsNotAsErrors);IL2026;IL2067;IL2072;IL2075 + $(WarningsNotAsErrors);IL2026;IL2067;IL2072;IL2075;IL3050 false diff --git a/changelog.d/unreleased/2786.fixed.md b/changelog.d/unreleased/2786.fixed.md new file mode 100644 index 0000000000..fdc93430f8 --- /dev/null +++ b/changelog.d/unreleased/2786.fixed.md @@ -0,0 +1,15 @@ +--- +category: fixed +issues: + - 2786 +affected: + - Directory.Build.props +--- + +## English + +- **Native AOT analyzer warnings no longer block ordinary test builds (#2786)** — `IL3050` diagnostics now remain warnings under the repository-wide warnings-as-errors policy, matching the existing trim analyzer treatment so targeted `dotnet test` runs can build before executing tests. + +## 日本語 + +- **Native AOT analyzer 警告が通常のテストビルドを止めないようになりました (#2786)** — `IL3050` 診断をリポジトリ全体の warnings-as-errors 設定下でも警告として扱い、既存の trim analyzer と同じ扱いにすることで、対象を絞った `dotnet test` がテスト実行前のビルドで失敗しないようにしました。 From 8eefe7f5dc9f77fdf5201edbae698b896f1d5173 Mon Sep 17 00:00:00 2001 From: Widthdom Date: Mon, 1 Jun 2026 02:10:58 +0900 Subject: [PATCH 2/3] Fix format check for IL3050 warnings (#2786) --- changelog.d/unreleased/2786.fixed.md | 1 + src/CodeIndex/CodeIndex.csproj | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changelog.d/unreleased/2786.fixed.md b/changelog.d/unreleased/2786.fixed.md index fdc93430f8..0ac0f9fd85 100644 --- a/changelog.d/unreleased/2786.fixed.md +++ b/changelog.d/unreleased/2786.fixed.md @@ -4,6 +4,7 @@ issues: - 2786 affected: - Directory.Build.props + - src/CodeIndex/CodeIndex.csproj --- ## English diff --git a/src/CodeIndex/CodeIndex.csproj b/src/CodeIndex/CodeIndex.csproj index e7eab15775..6f834df728 100644 --- a/src/CodeIndex/CodeIndex.csproj +++ b/src/CodeIndex/CodeIndex.csproj @@ -10,6 +10,8 @@ true true true + false + false false true true From 998d1196948b78324399e44e7f1c52febdd7bd2e Mon Sep 17 00:00:00 2001 From: Widthdom Date: Mon, 1 Jun 2026 02:13:48 +0900 Subject: [PATCH 3/3] Keep IL3050 warning classification from main (#2786) --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index a2ba2e8677..a462a46534 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -14,7 +14,7 @@ --> true true - $(WarningsNotAsErrors);IL2026;IL2067;IL2072;IL2075 + $(WarningsNotAsErrors);IL2026;IL2067;IL2072;IL2075;IL3050 false