Blog

Auto-publish a NuGet package from Visual Studio Team Services

01 Aug 2016

Continuous integration is an important topic : automate tedious tasks and focus on code instead. I’ll explain you how to configure a simple VSTS build definition to publish a NuGet version on each source commit.

Source code and package specification

First, be sur you have the Visual Studio project source code available from Visual Studio Team Services (VSTS) : GitHub is a well known git repository provider supported.

Your library must also be specified for NuGet with a .nuspec manifest file, or eventually use directly your .csproj for simple packages.

I have a simple library called Orkester as an example.

Create your build definition

After creating your Visual Studio Team Services project from dashboard, navigate to the Build tab.