NuGet 警告 NU3040

There are two certificates with conflicting allowUntrustedRoot attributes in the computed settings. The allowUntrustedRoot attribute is going to be set to false. Certificate: SHA256-3F9001EA83C560D712C24CF213C3D312CB3BFF51EE89435D3430BD06B5D0EECE

问题

nuget.config 中的某一证书项中存在冲突的属性。两个证书项具有相同的 fingerprinthashAlgorithm,但 allowUntrustedRoot 不同。

解决方案

NuGet 将采用这些设置中最为严格的一项 (allowUntrustedRoot=false) 来删除此警告,从而确保删除重复的证书项或为二者将 allowUntrustedRoot 设为同一值。