问题描述(折磨我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 开启
真相
网友评论