到今天为止,这条消息似乎是无法解决的。C:\Usersuser\AppData\Roaming\NuGet\nuget.config中的nuget.config
将signatureValidationMode设置为accept而不是'required‘没有任何区别。nuget Sync都不是。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
<trustedSigners>
<author name="Microsoft2021">
<certificate fingerprint="AA12DA22A49BCE7D5C1AE64CC1F3D892F150DA76140F210ABD2CBFFCA2C18A27" hashAlgorithm="SHA256" allowUntrustedRoot="false" />
</author>
<repository name="nuget.org" serviceIndex="https://api.nuget.org/v3/index.json">
<certificate fingerprint="0e5f38f57dc1bcc806d8494f4f90fbcedd988b46760709cbeec6f4219aa6157d" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
<certificate fingerprint="5a2901d6ada3d18260b9c6dfe2133c95d74b9eef6ae0e5dc334c8454d1477df4" hashAlgorithm="SHA256" allowUntrustedRoot="true" />
</repository>
</trustedSigners>
</configuration>所有包现在都被认为是不受信任的。你还有其他的提示吗?谢谢!
错误NU3034:来自源‘https://api.nuget.org/v3/index.json'’的包'Swashbuckle.AspNetCore.SwaggerGen 6.1.3‘:此包已签名,但不是由受信任的签名者签名。
发布于 2021-04-25 16:34:23
答案最终是非常简单的。Nuget.config可以有不同的作用域,我认为只有两个作用域,计算机级别和VS 2019(2017)级别。不是这样。https://docs.microsoft.com/nl-nl/nuget/consume-packages/configuring-nuget-behavior#config-file-locations-and-uses
我解决方案中的nuget.config是错误的。AFter删除它,包再次被接受。
https://stackoverflow.com/questions/67247909
复制相似问题