實例 1
找到重複的 『NuGetAuditSuppress』 專案。 拿掉重複的專案,或使用Update功能來確保還原行為一致。 重複的 'NuGetAuditSuppress' 專案為: https://contoso.test/cve/1 、 https://contoso.test/cve/1 。
問題
有時候,新增 NuGetAuditSuppress 專案時,您可能會多次加入特定套件的專案。
MSBuild 專案通常會匯入多個 .props 和 .targets 檔案,因此重複專案可能不在相同的檔案中,但可能位於匯入的檔案中,例如 Directory.Build.props、Directory.Packages.props或 Directory.Build.targets。
解決方案
拿掉重複的專案,使其只包含一次。