Archive | Tips & Tricks RSS feed for this section

Unattended install of a Visual Studio Team Services (a.k.a. VSO) Build Agent

A while ago I was looking at installing the VSTS build Agent on Linux and was searching for the possibility to uninstall it unattended. I was doing this because I wanted to run my agent in a Docker container and on startup I wanted to run a configured agent. I solved ths by using an […]

Continue reading

Running a Visual Studio Build vNext agent in a Docker container

Update: 27-10-2016 Take a look at the official Microsoft Docker Images on DockerHub that also contain a Build agent With the introduction of the new build engine in Visual Studio Online and Team Foundation Server 2015, Microsoft also introduced real cross-platform build capabilities, The VSO-BuildAgent and tasks are both published as Open source on Github […]

Continue reading

Using Personal Access Tokens to access Visual Studio Online

People who use Visual Studio Online for a while are probably familiar with the alternate credentials. These are used when accessing the REST API or when using an external client for accessing your Git repositories. You configure your alternate credentials on your [My Profile] page and fill a username and password of your choice. Once […]

Continue reading

Modern tools glossary

Maybe I am getting old, maybe I am too busy with other stuff but the number of frameworks, tools and utilities has seemed to grow exponentially over the last years. As a Microsoft developer from “the early” I usually only had to worry about a new version of Visual Studio, Team Foundation Server or a […]

Continue reading

Build fails when associating work items

Recently I ran into a strange problem. I modified a work item type definition and added a field. So far, so good. The field could be edited and everyone was happy. But after that, my build failed. As you may or may not know you can choose to associate work items during a check-in (read […]

Continue reading

Trigger a vNext release template from a build definition throws Http Error 500

Last week I was busy with some work on a vNext Release template. When my release worked I wanted to trigger that release from my build definition. Where as in the agent-based Release Management it was a matter of checking a checkbox and using a different Build Template that triggers this release, in the vNext […]

Continue reading

Making a Work Item Read Only when it has a certain state

I am busy at a customer with implementing some security rules on work items. As you might or moght not know the work item security is quite limited. My scenario is as follows: Only users in group XYZ kan make a state transition from [Draft] to [Approved] When the item is in the state [Approved] […]

Continue reading

Bulk destroy Work Items from Team Foundation Server

WARNING: Destroy work items is a irreversible action so use with caution and at your own risk! Lately I am quire busy with all kinds of migration work to Team Foundation Server. This means a lot of testing, modifying and re-testing. Because the target Team Project has quite some modifications and custom work it is […]

Continue reading

Insert an inline image into a Work Item with the TFS API

On the verge of 2014 I wanted to share a last post with you. At the moment I am working on a migration tool to migrate from another system to TFS 2013. The source system contains a lot of items with a description that contains images. Not as an attachment but as an inline image into […]

Continue reading

Silently install and configure a TFS Build server with Powershell DSC

A while ago Powershell Desired State Configurations (DSC) was introduced. Powershell DSC allows you to create a configuration of a specific machine in a powershell file. The Powershell engine takes care of rolling out this configuration. This configuration snippet makes sure a IIS is present. If it already is it stops, if not, it installs […]

Continue reading