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


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

查看所有标签

猜你喜欢:

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

Algorithms to Live By

Algorithms to Live By

Brian Christian、Tom Griffiths / Henry Holt and Co. / 2016-4-19 / USD 30.00

A fascinating exploration of how insights from computer algorithms can be applied to our everyday lives, helping to solve common decision-making problems and illuminate the workings of the human mind ......一起来看看 《Algorithms to Live By》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具