推送到私人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


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

查看所有标签

猜你喜欢:

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

认知与设计

认知与设计

Jeff Johnson / 张一宁、王军锋 / 人民邮电出版社 / 2014-8-1 / CNY 69.00

本书语言清晰明了,将设计准则与其核心的认知学和感知科学高度统一起来,使得设计准则更容易地在具体环境中得到应用。涵盖了交互计算机系统设计的方方面面,为交互系统设计提供了支持工程方法。不仅如此,这也是一本人类行为原理的入门书。一起来看看 《认知与设计》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具