Packages not showing in feed after NuGet Publish
As a final build step, I am publishing my NuGet package to the TeamCity NuGet feed. I get the results below, indicating that the package already exists in the feed.
However, if I open the feed in VS or just navigating to the query, I can't see my packages there: https://teamcity.company.io/httpAuth/app/nuget/feed/_Root/company/v3/query
What am I missing here?
[Step 10/10] push: Publish package MyPackage.1.0.0.0.nupkg (1s)
[push] Starting: C:\BuildAgent\tools\NuGet.CommandLine.5.1.0\tools\NuGet.exe push C:\BuildAgent\work\d1d4871afa0ba524\MyPackage.1.0.0.0.nupkg ******* -SkipDuplicate -Source https://teamcity.company.io/httpAuth/app/nuget/feed/_Root/company/v2
[push] PUT https://teamcity.company.io/httpAuth/app/nuget/feed/_Root/company/v2/
[push] Conflict https://teamcity.company.io/httpAuth/app/nuget/feed/_Root/company/v2/ 816ms
[push] Package 'C:\BuildAgent\work\d1d4871afa0ba524\MyPackage.1.0.0.0.nupkg' already exists at feed 'https://teamcity.company.io/httpAuth/app/nuget/feed/_Root/company/v2'.
[push] Process exited with code 0
Please sign in to leave a comment.
Hi Andre,
Could you please try to execute the following command from the command line:
```nuget list MyPackage -PreRelease -IncludeDelisted -AllVersions -source https://teamcity.company.io/httpAuth/app/nuget/feed/_Root/company/v3```
Do you see your package there? If no, do you see any errors in the teamcity-nuget.log file on the server? Could it be the cause that you publish the packages in earlier build steps (e.g., using service messages)?
Hi Nadia,
Thank you for your comments. It turned out that there was an issue with the NuGet feeds on the server side.
We had to reindex the feeds and run all the builds again.
This helped us resolve the issue.
Thanks!