Aracılığıyla paylaş


NuGet Hatası NU3034

Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': signatureValidationMode is set to require, so packages are allowed only if signed by trusted signers; however, no trusted signers were specified.
Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': The package signature certificate fingerprint does not match any certificate fingerprint in the allow list.
Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': This repository indicated that all its packages are repository signed; however, it listed no signing certificates.
Package 'SamplePackage v1.0.0' from source 'https://contoso.com/index.json': This package was not repository signed with a certificate listed by this repository.

Sorun

Eksik bir izin listesi var veya paket imzalayan listedeki hiçbir imzalayanla eşleşmiyor. Bu liste, depo tarafından gönderilebilir veya öğesinin trustedSigners bölümünde nuget.configbelirtilebilir.

Çözüm

Moddaysa require , yalnızca güvenilir bir imzalayan tarafından imzalanan paketler doğrulamayı geçirir. Aksi takdirde, depo imzalama güvenlik yönergelerine uymayan bir pakete sahip olduklarını bildirmek için bunun indirildiği depoya başvurun.