O'Reilly logo

Visual Studio 2013 and .NET 4.5 Expert Cookbook by Abhishek Sur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating TFS-scheduled jobs

As TFS runs in the background, there is always a requirement to run scheduled jobs that perform a batch operation silently in the background. The TFS Background Job Agent is used to run certain tasks that can be hooked into the TFS system and that run automatically when scheduled.

Getting ready

Before getting started, create a library class and name it ScheduledJobs. We need to add a reference to the following files:

  • Microsoft.TeamFoundation.Framework.Server.dll located at C:\Program Files\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\Bin
  • Microsoft.TeamFoundation.Common.dll located at C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies\v2.0
  • Microsoft.VisualStudio.Services.WebApi.dll ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required