where should i copy the nupkg so that appveyor automatically pushes them to the feed

Dorin Oltean's Avatar

Dorin Oltean

03 Jul, 2017 03:07 PM

Hey,
I've been playing around with building nugets by msbuild using csproj file ( http://blog.nuget.org/20170316/NuGet-now-fully-integrated-into-MSBuild.html )

This creates the nuget package inside the bin folder.

In order to to push them to appveyor i used Push-AppveyorArtifact from powershell
`Get-ChildItem "*\bin\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }`
It works but only before tests are running.

Can i somehow provide the nupkg files to the step of appveyor that pushes nugets created in the old flow, from nuspec files ?

  1. 1 Posted by Ilya Finkelshte... on 03 Jul, 2017 05:44 PM

    Ilya Finkelshteyn's Avatar

    Hi Dorin,

    If you use built-in artifacts packaging it will happen after test are running, as described in build pipeline.
    Also you can use your script at after_test stage (again see build pipeline).

    Packaging nuget in the "old flow" does not change the order of artifacts packaging, it also happens during build step. Per my understanding , you need to adjust time of artifacts packaging, not nuget packaging.

  2. 2 Posted by Dorin Oltean on 04 Jul, 2017 06:27 AM

    Dorin Oltean's Avatar

    Thanks. Went with the artifacts solution. Works great.

  3. 3 Posted by Ilya Finkelshte... on 04 Jul, 2017 08:36 PM

    Ilya Finkelshteyn's Avatar

    Thank you for update!

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:18 AM.

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

Recent Discussions

18 Jun, 2025 08:45 PM
18 Jun, 2025 04:23 PM
13 Jun, 2025 04:36 PM
13 Jun, 2025 04:27 PM
13 Jun, 2025 07:20 AM

 

10 Jun, 2025 01:56 AM
09 Jun, 2025 07:11 PM
04 Jun, 2025 04:08 PM
27 May, 2025 05:48 PM
27 May, 2025 06:37 AM
27 May, 2025 06:31 AM