NuGet Response status code does not indicate success: 401 (Unauthorized).

发布时间 2023-04-06 16:06:02作者: hofmann
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nexus-cn/repository/nuget-group/FindPackagesById()?id='Moq'&semVerLevel=2.0.0'.
An error occurred while sending the request.
  The request was aborted: The request was canceled.
  The ServicePointManager does not support proxies with the https scheme.
Retrying 'FindPackagesByIdAsyncCore' for source 'https://nexus-cn/repository/nuget-group/FindPackagesById()?id='NLog.Web.AspNetCore'&semVerLevel=2.0.0'.
Response status code does not indicate success: 401 (Unauthorized). 

 

原因:登录用户的密码输错了,清理后重新输入就好了。

  在控制面板->凭据管理器->Windows Credentials->找到VS Credential 删除,再次Restore NuGet 后会再次提示输入机器登录名和密码,输入正确就解决了。