nupkg for ASP.NET 5 build
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
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
Support Staff 1 Posted by Feodor Fitsner on 07 Aug, 2015 03:14 PM
Hi Tom,
This should work I guess for ASP.NET 5 projects too: http://www.appveyor.com/docs/nuget#configuring-appveyor-nuget-feeds...
2 Posted by Tom Deseyn on 07 Aug, 2015 08:47 PM
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
Support Staff 3 Posted by Feodor Fitsner on 07 Aug, 2015 09:03 PM
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 Posted by Tom Deseyn on 07 Aug, 2015 09:22 PM
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
Support Staff 5 Posted by Feodor Fitsner on 07 Aug, 2015 10:32 PM
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 Posted by Tom Deseyn on 10 Aug, 2015 03:39 PM
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?
Support Staff 7 Posted by Feodor Fitsner on 10 Aug, 2015 03:40 PM
Do you see those packages on "Artifacts" tab of project build results page?
8 Posted by Tom Deseyn on 10 Aug, 2015 03:47 PM
No, there is a text saying 'The build job does not contain any artifacts.
Support Staff 9 Posted by Feodor Fitsner on 10 Aug, 2015 03:49 PM
That means nuget packages are not uploaded to artifacts.
Do you use appveyor.yml by chance or all settings via UI?
10 Posted by Tom Deseyn on 10 Aug, 2015 03:52 PM
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
Support Staff 11 Posted by Feodor Fitsner on 10 Aug, 2015 04:01 PM
With appveyor.yml settings on UI are ignored (except environment variables and notifications).
You could add
artifacts
to appveyor.yml:12 Posted by Tom Deseyn on 10 Aug, 2015 04:37 PM
Works like a charm. Thanks.
Perhaps the documentation and UI can improve to better highlight this limitation.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:59 AM.