Nuget - how to publish to account/project feed?

Vegard B's Avatar

Vegard B

06 Nov, 2014 11:15 AM

According to the documentation:
"When it is enabled AppVeyor calls nuget pack for every project in the solution that has a .nuspec file in its root and then publishes NuGet package artifacts in both project and account feeds."

Should this happen automagically, or do you need to set it up in the deployment as well? We get the package file, but we can't find it in neither the project or accound feed.

  1. Support Staff 1 Posted by Feodor Fitsner on 06 Nov, 2014 06:48 PM

    Feodor Fitsner's Avatar

    True, whenever *.nupkg files pushed to build artifacts they get published in account and project NuGet feeds. Do you see them on build "Artifacts" tab?

    Also, to list packages in the feed use the following command:

    nuget list -source <your-account-feed-url> -allversions -prerelease
  2. 2 Posted by davew on 13 Jan, 2015 11:46 PM

    davew's Avatar

    Hi Feodor,

    I was having a similar problem to Vegard. I couldn't see release versions until I specified the -allversions flag on the command line.

    I don't know if it's worth mentioning in the documentation that:

    • visiting the feed URL in the browser won't show the packages
    • -allversions needs to be specified on the command line to see release versions


  3. 3 Posted by davew on 13 Jan, 2015 11:55 PM

    davew's Avatar

    Actually I spoke to soon. I'm still not seeing anything in the feed in Visual Studio even though there are items only present from the command line when the -allversions flag is used.

    Any ideas?


  4. Support Staff 4 Posted by Feodor Fitsner on 13 Jan, 2015 11:58 PM

    Feodor Fitsner's Avatar

    Hi Dave,

    Will take a look. What's the name (URL) of that feed and what package ID and their version you are expecting to see?

  5. 5 Posted by davew on 14 Jan, 2015 12:11 AM

    davew's Avatar

    I cleared down my account feed and rebuilt a stable version and can now see it in Visual Studio.


  6. 6 Posted by davew on 14 Jan, 2015 12:13 AM

    davew's Avatar

    So a little more detail:

    • while trying to get the process working I had pre-release versions greater than 1.0.0
    • I was trying to build a stable version of 1.0.0, which I did subsequently
    • I could see this version in the command line tool when I specified -allversions, but couldn't see it in Visual Studio
    • I deleted all the packages in the Account Feed and rebuilt the 1.0.0 package - which I can now see in the feed


  7. Support Staff 7 Posted by Feodor Fitsner on 14 Jan, 2015 04:01 AM

    Feodor Fitsner's Avatar

    Hm, I see - good scenario.

    Every time a new package pushed into feed "last version" and "absolute last versions" are recalculated. Maybe there is something wrong with that. Will take a look.

  8. 8 Posted by davew on 14 Jan, 2015 09:01 AM

    davew's Avatar


    That would explain why even though I deleted prereleases past 1.0.0 (1.0.9-rc1 for example) I couldn't see 1.0.0 even after I removed all prereleases from the account feed.


    Sent from my iPhone

  9. Support Staff 9 Posted by Feodor Fitsner on 14 Jan, 2015 05:37 PM

    Feodor Fitsner's Avatar

    Exactly. Will investigate and let you know about results.

  10. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac