NuGet servers requiring username/password in VSTS

nuget.jpgWhen you buy a tool for your development, sometimes that tool comes via a private NuGet server which often requires a username and password.

In order to access the server, you’ll need to add these credentials to VSTS. To do this, click the Gear, then Services.

vsts1.png

Click New Service Endpoint, then choose NuGet from the list that appears.

vsts2.png

 

On the dialog that appears, select Basic Authentication and enter the details for the external NuGet server.

vsts3.png

Now go to your build definition, and choose the NuGet restore build setup you have already added there. Under Feeds and authentication, choose Feeds in my NuGet.config and enter the path to your nuget.config in the solution.

Then choose the credentials you just added in the following box.

vsts4.png

Happy Building!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s