nupkg for ASP.NET 5 build

Tom Deseyn's Avatar

Tom Deseyn

07 Aug, 2015 11:08 AM

Hi,

I have setup AppVeyor to build an ASP.NET 5 project: https://ci.appveyor.com/project/tmds/tmds-sockjs.
How can I configure the project to get the nuget packages in my https://ci.appveyor.com/nuget/tmds-sockjs-xxxxxx feed?

Thanks,

Tom

  1. Support Staff 1 Posted by Feodor Fitsner on 07 Aug, 2015 03:14 PM

    Feodor Fitsner's Avatar

    Hi Tom,

    This should work I guess for ASP.NET 5 projects too: http://www.appveyor.com/docs/nuget#configuring-appveyor-nuget-feeds...

  2. 2 Posted by Tom Deseyn on 07 Aug, 2015 08:47 PM

    Tom Deseyn's Avatar

    Hi Feodor,

    I think my question was not that clear. It is about the packages that my project produces, not about those that it consumes.
    The build log shows it is copying the nugget files at some point, but I have no idea where.
    The ASP.NET 5 builds, use a build.cmd script.

    Wkr,

    Tom

  3. Support Staff 3 Posted by Feodor Fitsner on 07 Aug, 2015 09:03 PM

    Feodor Fitsner's Avatar

    So, project A produces nuget packages that are pushed to a project nuget feed and the questions is how to grab those packages in project B?

  4. 4 Posted by Tom Deseyn on 07 Aug, 2015 09:22 PM

    Tom Deseyn's Avatar

    project A produces some nugget packages, how to get them into the project A nuget feed?

    The build log shows nupkg packages are copied. I would like to get those in the project nuget feed.
    e.g.: Copying Tmds.SockJS.0.3.0-t150807102007.nupkg

  5. Support Staff 5 Posted by Feodor Fitsner on 07 Aug, 2015 10:32 PM

    Feodor Fitsner's Avatar

    OK, got it. Whenever you push nuget package to artifacts it's getting published in account and project feeds automatically: http://www.appveyor.com/docs/packaging-artifacts

  6. 6 Posted by Tom Deseyn on 10 Aug, 2015 03:39 PM

    Tom Deseyn's Avatar

    I tried configuring this using the Artifacts section in the settings.
    I added an artifact line with the following settings:
    - path to artifact: '**\*.nupkg'
    - deployment name: nupkg
    - type: auto

    I did a build.
    When I open the nuget feed in the browser it looks empty. Also adding the feed to Visual Studio shows no packages.

    Did I get the settings wrong? Should the build log show when the artifacts are published on the nuget feed?

  7. Support Staff 7 Posted by Feodor Fitsner on 10 Aug, 2015 03:40 PM

    Feodor Fitsner's Avatar

    Do you see those packages on "Artifacts" tab of project build results page?

  8. 8 Posted by Tom Deseyn on 10 Aug, 2015 03:47 PM

    Tom Deseyn's Avatar

    No, there is a text saying 'The build job does not contain any artifacts.

  9. Support Staff 9 Posted by Feodor Fitsner on 10 Aug, 2015 03:49 PM

    Feodor Fitsner's Avatar

    That means nuget packages are not uploaded to artifacts.

    Do you use appveyor.yml by chance or all settings via UI?

  10. 10 Posted by Tom Deseyn on 10 Aug, 2015 03:52 PM

    Tom Deseyn's Avatar

    I have some settings in appveyor.yml others are in the UI.

    This is the appveyor file: https://github.com/tmds/Tmds.SockJS/blob/master/appveyor.yml

  11. Support Staff 11 Posted by Feodor Fitsner on 10 Aug, 2015 04:01 PM

    Feodor Fitsner's Avatar

    With appveyor.yml settings on UI are ignored (except environment variables and notifications).

    You could add artifacts to appveyor.yml:

    artifacts:
    - path: '**\*.nupkg'
    
  12. 12 Posted by Tom Deseyn on 10 Aug, 2015 04:37 PM

    Tom Deseyn's Avatar

    Works like a charm. Thanks.
    Perhaps the documentation and UI can improve to better highlight this limitation.

  13. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 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