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

Extensions.Base can't support System.Func`10+

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
cpp
領域
devtools

調査の方向性

mscorlib.dll の OnModuleLoad 中の HostExtensionsBase と、Microsoft.Diagnostics.Instrumentation.Extensions.Base.dll のインポート ロジックから着手してください。関連する PR #463 と #557 を確認し、そのうえで、mscorlib 内に無効な TypeRefs を作成せずに System.Func`10 およびその他の System.Core 型を利用可能にする方法を決定してください。これらのコールバックのインポートが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Related PRs:
https://github.com/microsoft/CLRInstrumentationEngine/pull/463
https://github.com/microsoft/CLRInstrumentationEngine/pull/557

During OnModuleLoad for mscorlib.dll, HostExtensionsBase tries to inject the types/methods from Microsoft.Diagnostics.Instrumentation.Extensions.Base.dll into mscorlib.

The Extensions.Base.dll module contains the ApplicationInsights_OnBegin/_OnEnd callbacks that use System.Func and other types.
It also defines these callbacks inside the _System.Diagnostics namespace - types with _ prefixes are emitted into mscorlib (otherwise they are assumed to be there already.

The import will fail when resolving types like System.Func`10 since that comes from System.Core.dll which requires a TypeRef - not allowed in mscorlib.

One solution might be to have the System.Func`10+ callbacks defined separately and imported into System.Core.dll, but there might also be changes needed in Intercept-Engine to consume that.

主要言語
C++
スター
104
フォーク
53
平均マージ
3時間 34分
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

microsoft/CLRInstrumentationEngine のほかの issue

microsoft/CLRInstrumentationEngine の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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