dotnet / dotnet/api-docs-sync

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

未关闭
#88 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
14
派生
21
PR 合并指标
30 天内没有已合并 PR

描述

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
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.");
}
}
}
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 Libraries/ToTripleSlashPorter.cs 中靠近被注释掉的 Log.Finished 和 exception 行的诊断处理部分开始。使用提供的 ToTripleSlashPorter 命令重现该问题,并检查 Accessibility.ilproj 的失败是如何报告的。完成标准是能够处理这个缺失或无效的 Accessibility-version.dll 诊断,同时不普遍禁用诊断报告。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
documentation, tooling
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。