File 'Accessibility-version.dll' not found or not a PE file

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp

調査の方向性

Libraries/ToTripleSlashPorter.cs の、コメントアウトされている Log.Finished および exception の行付近にある診断処理から始めてください。提供されている ToTripleSlashPorter コマンドで問題を再現し、Accessibility.ilproj の失敗がどのように報告されるかを調べてください。全般的に診断の報告を無効にすることなく、この欠落または無効な Accessibility-version.dll に関する診断を処理できるようにすることが完了条件です。

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

説明

An attempt to backport to /// fails with the following error:

Diagnostic messages found in workspace.OpenProjectAsync - D:\Development\dotnet-winforms\src\System.Windows.Forms\src\System.Windows.Forms.csproj:
    Failure - Msbuild failed when processing the file 'D:\Development\dotnet-winforms\src\Accessibility\src\Accessibility.ilproj' with message:
        EXEC: (0, 0): File 'D:\Development\dotnet-winforms\artifacts\bin\Accessibility-version\Debug\net6.0\Accessibility-version.dll' not found or not a PE file
    Failure - Msbuild failed when processing the file 'D:\Development\dotnet-winforms\src\Accessibility\src\Accessibility.ilproj' with message:
        C:\Users\igveliko\.nuget\packages\microsoft.net.sdk.il\6.0.0-rc.2.21454.1\targets\Microsoft.NET.Sdk.IL.targets: (106, 5): The command ""C:\Users\igveliko\.nuget\packages\\runtime.win-x64.microsoft.netcore.ildasm\6.0.0-rc.2.21454.1\runtimes\win-x64\native/ildasm" "D:\Development\dotnet-winforms\artifacts\bin\Accessibility-version\Debug\net6.0\Accessibility-version.dll" /OUT="D:\Development\dotnet-winforms\artifacts\obj\Accessibility\Debug\net6.0\/Accessibility.ref.il"" exited with code 1.

Running the following command:

-CsProj D:\Development\dotnet-winforms\src\System.Windows.Forms\src\System.Windows.Forms.csproj -Docs D:\Development\dotnet-dotnet-api-docs\xml -Direction ToTripleSlash -IncludedAssemblies System.Windows.Forms.dll -IncludedNamespaces System.Windows.Forms

For the time being I've disabled the diagnostics as follows, but there should be a better way to ignore this error:

diff --git a/Libraries/ToTripleSlashPorter.cs b/Libraries/ToTripleSlashPorter.cs
index b4a3110..e02039f 100644
--- a/Libraries/ToTripleSlashPorter.cs
+++ b/Libraries/ToTripleSlashPorter.cs
@@ -474,7 +474,8 @@ namespace Libraries
                         Log.Error(msg);
                     }
 
+                    //Log.Finished();
+                    //throw new Exception("Diagnostic errors found.");
                 }
             }
         }
主要言語
C#
スター
14
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

dotnet/api-docs-sync のほかの issue

dotnet/api-docs-sync の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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