TFS Build 2015 (vNext) – Custom Tasks

This post is part of a series of articles on the new TFS Build vNext System.

So I’ve talked before about how the new cross platform build system in TFS 2015 and Visual Studio Online is fully extensible and allows you to create your own custom build tasks but it isn’t immediately obvious how to do it.

I’ll would like to walk through an end to end example creating a custom vnext build task to run a SQL script as part of the build

The tasks for build vNext are open source and Microsoft is accepting contributions so if you write a really nice and useful task it could be included in every Visual Studio Online account.

Continue reading TFS Build 2015 (vNext) – Custom Tasks

Advertisements

Visual Studio Online is now truly cross platform

Microsoft is doing a great job of embracing open source, cross platform technologies. Just look at the release of Visual Studio 2015, we’ve got first class support for python, node, android, iOS, cordova, the list is endless. The days of using Microsoft developer tools to develop code that only runs on Windows servers is over.

More than that, updates to Visual Studio Online made over the last few years, starting with support for GIT and now the new cross platform build system, have finally made the Visual Studio Online platform a real choice for non Microsoft developers.

Don’t believe me, well let me walk through an example how you can use Microsoft tools to create the full development infrastructure, from source control to build, test, deployment and hosting, to support a node.js project (or any other non Microsoft language actually) without ever coming across, using or interacting with a Windows Server or Windows operating system.

Continue reading Visual Studio Online is now truly cross platform

TFS Build 2015 (vNext) – Scripts and Variables

This post is part of a series of articles on the new TFS Build vNext System.

So as I talked about before it looks like the main way we will be able to customise our builds is to simply add a powershell script task to the build. We can create custom tasks if we like but for most build activities it will be enough to just add a powershell script. So lets say we have a set of unit tests that run against a database and we need to drop and recreate the database before the unit tests run. Here’s a simple example of how to wire in a script that does just that. Continue reading TFS Build 2015 (vNext) – Scripts and Variables

TFS Build 2015 (vNext) – Build Definitions

This post is part of a series of articles on the new TFS Build vNext System.

Lets take a more detailed look and the new build definitions and see what there is there. I’ve just downloaded the latest version of Visual Studio 2015 RC and I was a little surprised to see almost all UI for managing and editing builds (both xaml and vNext) has moved to the web portal. This is a big minus point for me, as a build ‘power user’ continuously switching from VS to the browser to monitor and manage my builds is very inefficient. I raised this uservoice request about it. Just imagine the number of clicks needed in the browser to switch team projects.

Continue reading TFS Build 2015 (vNext) – Build Definitions