Fails to analyze "Microsoft.Web.WebView2" dependency

未關閉
#537 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
csharp
領域
cli

研究方向

Reproduce with the steps in the issue: create a dotnet new classlib project, add a PackageReference to Microsoft.Web.WebView2 version 1.0.2420.47, and run dotnet outdated. The tool reports an analysis error and lists the package as outdated, so the cause is probably in how it reads that package's version or metadata from NuGet. Done when the package is no longer reported as outdated and the analysis error is gone for that project. The issue has no linked pull request, but the last comment was about 839 days ago, so confirm the maintainers still want a fix before starting.

由索引模型根據 Issue 內容生成。

描述

When a project contains Microsoft.Web.WebView2 package reference, dotnet outdated indicates that errors occurred while analyzing dependencies and Microsoft.Web.WebView2 is shown as outdated even when it is up-to- date.

To reproduce:

  1. Create a new project with dotnet new classlib
  2. Edit generated .csproj by adding:
    <ItemGroup>
      <PackageReference Include="Microsoft.Web.WebView2" Version="1.0.2420.47" />
    </ItemGroup>
    
  3. Run dotnet outdated

Actual behaviour

Note that 1.0.2420.47 is the latest version of Microsoft.Web.WebView2 as of March 27, 2024.

image

Expected beaviour

dotnet outdated should not be failing when a project contains reference to an official, digitally signed, Microsoft package Microsoft.Web.WebView2.

image

Example project that was created using the above steps: outdated-error.zip.

主要語言
C#
星號
1.7k
分支
172
平均合併
1 天 19 小時
30 天內合併 PR
39

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

dotnet-outdated/dotnet-outdated 的其他 Issue

查看 dotnet-outdated/dotnet-outdated 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。