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

Open
#88 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp

Research direction

Start in Libraries/ToTripleSlashPorter.cs around the diagnostic handling near the reported commented-out Log.Finished and exception lines. Reproduce the issue with the provided ToTripleSlashPorter command and inspect how the Accessibility.ilproj failure is reported. Done should allow this missing or invalid Accessibility-version.dll diagnostic to be handled without disabling diagnostic reporting generally.

Written by the indexing model from the issue text.

Description

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.");
                 }
             }
         }
Dominant language
C#
Stars
14
Forks
21
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/api-docs-sync

All issues in dotnet/api-docs-sync

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.