while pushing a nuget package to a local feed at http://localhost/site
, it asks for credentials.
在将nuget包推送到http:// localhost / site的本地提要时,它会要求提供凭据。
eg: nuget push ‘OracleDataAccess.1.0.0.nupkg’ -s 'http://10.xx.xx.2/SNNuget/mykey'
例如:nuget push'OracleDataAccess.1.0.0.nupkg'-s'http://10.xx.xx.2/SNNuget/mykey'
I am able to browse the feed directly and see the packages that I manually placed there. Any possibility to disable this? or any other solutions?
我可以直接浏览Feed并查看我手动放置的包。是否有可能禁用此功能?或任何其他解决方案?
3 个解决方案
#1
2
Isn't that what the ApiKey is for?
这不是ApiKey的用途吗?
nuget push foo.nupkg 33300000-3330-3330-3330-333033303330 -s http://customsource/
#2
1
Perhaps the following Gist can help you? https://gist.github.com/xavierdecoster/3205826
也许下面的Gist可以帮到你? https://gist.github.com/xavierdecoster/3205826
It contains the nuget.exe commands that allow you to store your feed credentials on your development machine.
它包含nuget.exe命令,允许您将源凭据存储在开发计算机上。
#3
0
You can find your Api Key under https://www.nuget.org/account, it looks like this: and you can either pass the API Key as a command line argument to nuget push
or preferably use nuget setapikey <key> -source <url> [options]
to bind a server URL with its credentials and never have to worry about it again :)
您可以在https://www.nuget.org/account下找到您的Api密钥,它看起来像这样:您可以将API密钥作为命令行参数传递给nuget push,或者最好使用nuget setapikey
#1
2
Isn't that what the ApiKey is for?
这不是ApiKey的用途吗?
nuget push foo.nupkg 33300000-3330-3330-3330-333033303330 -s http://customsource/
#2
1
Perhaps the following Gist can help you? https://gist.github.com/xavierdecoster/3205826
也许下面的Gist可以帮到你? https://gist.github.com/xavierdecoster/3205826
It contains the nuget.exe commands that allow you to store your feed credentials on your development machine.
它包含nuget.exe命令,允许您将源凭据存储在开发计算机上。
#3
0
You can find your Api Key under https://www.nuget.org/account, it looks like this: and you can either pass the API Key as a command line argument to nuget push
or preferably use nuget setapikey <key> -source <url> [options]
to bind a server URL with its credentials and never have to worry about it again :)
您可以在https://www.nuget.org/account下找到您的Api密钥,它看起来像这样:您可以将API密钥作为命令行参数传递给nuget push,或者最好使用nuget setapikey