Noe*_*oel 17 nuget nuget-server
我使用空的Web应用程序和nuget服务器包设置了一个私有nuget feed.这一切都正常,我可以从Feed中检索,我可以使用Nuget Package Explorer发布到私有Feed.但是我无法通过命令行发布 - 它会提示输入凭据.我已经在Appsettings中将Web应用程序中的ApiKey设置为一个简单的密码,我尝试将ApiKey添加到push命令.这会提示我输入用户名和密码.我也尝试过SetApiKey命令但是我得到了相同的行为.在构建服务器上,我尝试相同的结果.
以下是构建日志中的错误消息(标识信息x出来)
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:
Run Code Online (Sandbox Code Playgroud)
小智 9
找到Windows Server 2012和Nuget.Server 2.8.5的解决方案
为"Everyone"组添加"写入"权限.
归档时间: |
|
查看次数: |
9957 次 |
最近记录: |