MyGetDocs
MyGetDocs copied to clipboard
Reference: package restore from MyGet during Visual Studio Online build
Explain how to do package restore in Visual Studio Online build
/cc @xavierdecoster
This would be a page similar to the one for TeamCity http://docs.myget.org/docs/how-to/consume-a-private-feed-in-teamcity ?
Now would be a great time for this ;-)
The 2.0 update of the Nuget Installer task has 2 first-class citizens: nuget.org and the VSTS feed (built-in package repo).
The tooltip says:
You can either select a feed from VSTS and/or NuGet.org here, or commit a nuget.config file to your source code repository and set its path here.
Pre-authenticated url would be easy to add, but some guidance on how to do this with the regular url (basic auth) url would be great. Both for hosted and on-prem builds.
PR's are always welcome ;-)
If I knew how to do it correctly, I wouldn't be asking for the docs page :grin:
Should be very similar to http://docs.myget.org/docs/how-to/publish-to-myget-from-a-vsts-build :-)
The big difference is that the feed must be add to the nuget.config for external feeds. Can't define it anymore in VSTS and just select it.
Internal feeds

External feeds - you can add credentials

I'll figure it our once I have to upgrade to the newest version of the build task. In v0 of the build task, this was different. With our own build server, the myget feed is stored in the nuget.config at some root level. And that still works perfectly.
Oh nice to see VSTS making it harder :-) Yeah NuGet.config I'd the way to go I think
Just checked there should be an older task that can be used (or this one and NuGet.config)