-
Notifications
You must be signed in to change notification settings - Fork 1.2k
buld.cmd nuget error - This package is signed but not by a trusted signer #10827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@kk-siemens does the above solution provide by @lindexi resolves your query? |
I don't know what to add as parameter in BTW: I tried the build.cmd on different computer and it worked well there Executing command "dotnet nuget trust list" (or "nuget trusted-signers list") to get trusted signers: On computer where it doesn't work:
On computer where it works: |
@kk-siemens Can I find your |
"%ProgramFiles(x86)%\NuGet\Config\NuGet.Config" doesn't exist "%appdata%\NuGet\NuGet.Config": |
@kk-siemens Thank you. Emmm, how about replace the content of "%appdata%\NuGet\NuGet.Config" to <?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<bindingRedirects>
<add key="skip" value="False" />
</bindingRedirects>
<packageManagement>
<add key="format" value="1" />
<add key="disabled" value="False" />
</packageManagement>
<packageSources>
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
<add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\" />
</packageSources>
</configuration> And you can backup the origin "%appdata%\NuGet\NuGet.Config" before you replace the content. If you can not fix this issues by replace the content, that I guess the environment variables may record the error value. See https://learn.microsoft.com/en-us/nuget/consume-packages/consuming-packages-authenticated-feeds |
Hello,
I have problems to build the repository by build.cmd.
I have many nuget related errors ("This package is signed but not by a trusted signer") like:
D:\Code\DotNet\wpf\wpf\src\Microsoft.DotNet.Wpf\tests\UnitTests\System.Xaml.Tests\System.Xaml.Tests.csproj : error NU3034: Package 'coverlet.collector 6.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': This package is signed but not by a trusted signer. [D:\Code\DotNet\wpf\wpf\Microsoft.Dotnet.Wpf.sln]
D:\Code\DotNet\wpf\wpf\src\Microsoft.DotNet.Wpf\src\System.Xaml\System.Xaml.csproj : error NU3034: Package 'Microsoft.CodeAnalysis.NetAnalyzers 8.0.0' from source 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json': This package is signed but not by a trusted signer. [D:\Code\DotNet\wpf\wpf\Microsoft.Dotnet.Wpf.sln]
How can I make the url 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json' as trusted nuget source?
I have tried many ways to allow untrusted sources or add the url to trusted source but nothing worked.
Thank you,
Karel
The text was updated successfully, but these errors were encountered: