Nexus3 dotnet nuget push 401问题
2021-12-22 本文已影响0人
胸口砕大石
问题描述(折磨我3天)
PS C:\Users\Jack\source\repos\Nexus3NugetTest\bin\Release> dotnet nuget push *.nupkg --api-key ***** --source http://sy.rgsc.com.cn:8081/repository/nuget-rgsc-common/
正在将 Nexus3NugetTest.3.0.1.nupkg 推送到 'http://******:8081/repository/nuget-rgsc-common/'...
PUT http://******:8081/repository/nuget-rgsc-common/
Unauthorized http://******:8081/repository/nuget-rgsc-common/ 102 毫秒
error: Response status code does not indicate success: 401 (Unauthorized).
解决办法
设置-Security->Realms 开启
真相