推送到私人nuget饲料提示证书

栏目: ASP.NET · 发布时间: 7年前

内容简介:http://stackoverflow.com/questions/20228184/pushing-to-private-nuget-feed-prompts-for-credentials

我已经使用空的Web应用程序和nuget服务器包设置了一个私有的nuget feed.这是一切正常,我可以从饲料检索,我可以发布到私人饲料使用Nuget包资源管理器.

但是我不能通过命令行发布 – 它提示凭据.我已经在Appsettings中的Web应用程序中设置了ApiKey,使用了一个简单的密码,我已经尝试将ApiKey添加到push命令中.这提示我一个用户名,然后一个密码.

我也尝试过SetApiKey命令,但我也得到相同的行为.

在构建服务器上,我尝试使用相同的结果.

以下是构建日志中的错误消息(识别信息x’d out)

nuget pack "C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\Bxxxxxxxs.Web.Http.csproj" -IncludeReferencedProjects -Properties Configuration=Release
  nuget SetApiKey Bxxxxxxx1 -Source http://tfs12.xxxxxxxrps.com/Nuget
  nuget push *.nupkg -s http://tfs12.xxxxxxxrps.com/Nuget/
  C:\Builds\2\OE Phase II\Common\bin\xxxxxxx.Web.Http.dll
  1 File(s) copied
  Attempting to build package from 'xxxxxxx.Web.Http.csproj'.
  Packing files from 'C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\bin\Release'.
  Using 'xxxxxxxs.Web.Http.nuspec' for metadata.
  Found packages.config. Using packages listed as dependencies
  Successfully created package 'C:\Builds\2\OE Phase II\Common\bin\xxxxxxxs.Web.Http.1.0.0.0.nupkg'.
  The API Key 'xxxxxxx' was saved for 'http://tfs12.xxxxxxxrps.com/Nuget'.
  Pushing Bxxxxxxxrs.Data 1.0.0.0 to 'http://tfs12.xxxxxxxrps.com/Nuget/'...
  Please provide credentials for: http://tfs12.xxxxxxxrps.com/Nuget/
  Object reference not set to an instance of an object.
  UserName: Password:

找到的解决方案Windows Server 2012和Nuget.Server 2.8.5

>打开IIS管理器

找到你的“Nuget.Server”应用程序

>右键单击并选择“编辑权限”

>转到“安全”选项卡

为“Everyone”组添加“写入”权限.

http://stackoverflow.com/questions/20228184/pushing-to-private-nuget-feed-prompts-for-credentials


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Wireshark网络分析就这么简单

Wireshark网络分析就这么简单

林沛满 / 人民邮电出版社 / 2014-11-6 / 39.00

Wireshark可能是世界上最好的开源网络包分析器,能在多种平台上(比如Windows、Linux和Mac)抓取和分析网络包,在IT业界有着广泛的应用。 《Wireshark网络分析就这么简单》采用诙谐风趣的手法,由浅入深地用Wireshark分析了常见的网络协议,读者在学习Wireshark的同时,也会在不知不觉中理解这些协议。作者还通过身边发生的一些真实案例,分享了Wireshark的......一起来看看 《Wireshark网络分析就这么简单》 这本书的介绍吧!

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具