MAUI Android publish fails: missing System.Activator.CreateDefaultInstance
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- android, csharp
- 領域
- build-system, ci-cd, mobile
調査の方向性
Start by reproducing the publish failure from MauiAndroidDefault.csproj with UseMonoRuntime=true and compare it with the passing Default CoreCLR jobs. Inspect the failure around ILCompiler.ReadyToRunCodegenCompilation and the missing System.Activator.CreateDefaultInstance method; done means the configured Mono performance scenario publishes successfully without NETSDK1096.
索引モデルが issue の本文から書いたものです。
説明
Description
MAUI Android performance CI jobs fail when publishing MauiAndroidDefault.csproj with UseMonoRuntime=true.
Error
Unhandled exception. System.InvalidOperationException:
Expected method 'CreateDefaultInstance' not found on type
'[S.P.CoreLib]System.Activator'
error NETSDK1096: Optimizing assemblies for performance failed.
The stack trace includes ILCompiler.ReadyToRunCodegenCompilation (which is weird for Mono...)
Environment
| Component | Version |
|---|---|
| Build host | Windows 22H2, x64 |
| Target | net11.0-android, android-arm64, Release |
| .NET SDK | 11.0.100-rtm.26473.115 |
| Android workload | 37.99.0-preview.1.30 |
| MAUI workload | 11.0.0-rc.2.26474.8 |
| dotnet/performance commit | 1f0e0f68889a0996f30e265846446549a801800e |
Expected and actual behavior
Expected: The configured Mono performance scenario publishes successfully.
Actual: Crossgen throws the exception above, and publish fails with NETSDK1096. The underlying cause is not yet confirmed.
CI evidence
- Build 3087066: Mono Pixel10a job: the same error affects the GalaxyA16 and Pixel8 Mono jobs.
- Build 3086879: Mono Pixel10a job: the same error affects the GalaxyA16 Mono job.
The corresponding Default CoreCLR jobs pass in both builds. CI links require internal Azure DevOps access.
- 主要言語
- C#
- スター
- 2.1k
- フォーク
- 581
- 平均マージ
- 2日 31分
- マージ済み PR(30日)
- 223
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/android のほかの issue
-
Area: App+Library Build
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Area: Debugger enhancement needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 85/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日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
WPF: each page's `Title` overwrites the window title, and returning to a page does not restore itオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
agentic-workflows area/Docs partner/agentic-workflows
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jamesmontemagno/tiny-clips#378 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
go 🏃 testing 🧪
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
valkey-io/valkey-glide#7239 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SubtitleEdit/subtitleedit#15462 ·
メンテナーはふだん 1 日以内に返信