Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

MAUI Android publish fails: missing System.Activator.CreateDefaultInstance

オープン
#12,921 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
android, csharp

調査の方向性

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 の本文から書いたものです。

説明

needs-triage
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

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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dotnet/android のほかの issue

dotnet/android の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。