Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference: package restore from MyGet during Visual Studio Online build #51

Open
maartenba opened this issue Oct 15, 2015 · 8 comments
Open

Comments

@maartenba
Copy link
Member

Explain how to do package restore in Visual Studio Online build

@maartenba
Copy link
Member Author

/cc @xavierdecoster

@DavidDeSloovere
Copy link
Contributor

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.

@maartenba
Copy link
Member Author

PR's are always welcome ;-)

@DavidDeSloovere
Copy link
Contributor

If I knew how to do it correctly, I wouldn't be asking for the docs page 😁

@maartenba
Copy link
Member Author

Should be very similar to http://docs.myget.org/docs/how-to/publish-to-myget-from-a-vsts-build :-)

@DavidDeSloovere
Copy link
Contributor

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
image

External feeds - you can add credentials
image

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.

@maartenba
Copy link
Member Author

Oh nice to see VSTS making it harder :-) Yeah NuGet.config I'd the way to go I think

@maartenba
Copy link
Member Author

Just checked there should be an older task that can be used (or this one and NuGet.config)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@DavidDeSloovere @maartenba and others