NuGet Push all *.nuspec

jezz.santos's Avatar

jezz.santos

30 Dec, 2015 08:56 PM

Feodor,

We are using: nuget pack <projectfile>.csproj <options> in our MSBUILD files for all projects in our repo, automatically and this generates *.nupkg in our projects, during the build step.
Now, I need to publish them to our AV Project and Account feeds using appveyor PushArtifact <your-nugetpackage.nupkg>

What is the best way in my appveyor.yml file to publish ALL the *.nupkg that are created in the build step?

  1. Support Staff 1 Posted by Feodor Fitsner on 30 Dec, 2015 09:06 PM

    Feodor Fitsner's Avatar

    There is a sample at the bottom with Get-ChildItem command: http://www.appveyor.com/docs/packaging-artifacts but you can use it with -Recurse switch.

    -Feodor

  2. 2 Posted by jezz.santos on 30 Dec, 2015 09:45 PM

    jezz.santos's Avatar

    thanks this worked great:

    after_build:
    - ps: Get-ChildItem -Recurse .\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
    
  3. jezz.santos closed this discussion on 30 Dec, 2015 09:45 PM.

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

Keyboard shortcuts

Generic

? 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