So, we have Artifactory configured to share various resources for our team, and one of them is NuGet packages. Now I am very new to Artifactory, and one of my teammates uploaded the NuGet package to Artifactory and gave the address of the stream, which looks like this:
Http:/OurArtifactory/api/nuget/folder
I went ahead and added this URL as a new NuGet source to my visual studio. And Visual Studio added this address as a valid source. So far, so good. Now, when I go to the browseNuGet package manager window in VS, I expected to see the package that I see hosted in Artifactory. But I do not see any package when I am in this window.
Now, since this is an authenticated server, I realized that I need to set my security credentials here. What I did using the following commands:
nuget setapikey [apikey] -source [feedUrl]
nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password]
Also here I tried to provide
- The usual password, the encrypted password, and the KEy API in the
passwordcommand field , but nothing works.
Now, even after I set up the security credentials, the problem remains. Another thing that I realized when I asked for detailed logs with the -verbose flag creation is that it can definitely find the stream and get OKback from the stream, it just when it tries to find the package, then it does not find the package inside flow. My logs look like this:
install-package ArrayAnalysis.Data -verbose
GET https://url/finbyId()'
OK https://url/findbyid()' 5ms
Install-Package : Unable to find package 'package.name'
At line:1 char:16
+ install-package <<<< ArrayAnalysis.Data -verbose
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
I am not sure that I should do what I am missing. Any ideas?