内容简介: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
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Web Caching
Duane Wessels / O'Reilly Media, Inc. / 2001-6 / 39.95美元
On the World Wide Web, speed and efficiency are vital. Users have little patience for slow web pages, while network administrators want to make the most of their available bandwidth. A properly design......一起来看看 《Web Caching》 这本书的介绍吧!