Upgrading your build definitions from TFS2010 to TFS2012

There have been a lot of problems with compatibility of custom builds when upgrading from TFS2010 to TFS2012. This blog post is my attempt to summarize what you have to do and how to fix some issues you might run into. The very first step is to upgrade your Server. Your build machines should match…

30

TFS 2012 – Cleaning up Workflow XAML files (AKA removing versioned namespaces)

If you haven’t run into this problem in TFS Build 2012 yet, you probably will… Problem: After Upgrading your Visual Studio client or your build machine from 2010 to 2012, you start seeing errors like these… Opening a XAML file in Visual Studio 2012 – System.Reflection.TargetInvocationException: Exception has been thrown by the target of an…

27

TFS 2012 – IBuildDetail.RequestedFor is not what it used to be!

If you have custom build tasks or activities that rely on “build.RequestedFor” (or “build.RequestedBy”) being the account name, you may have some problems when converting those customizations over to TFS 2012 Build. In TFS 2012, we have completely switched over to Display names in the UI. To make this work consistent everywhere, we repurposed the…

0

Using NuGet with TFS Build Automation

In case you aren’t familiar with NuGet, check out this link: http://www.nuget.org How does NuGet help you with your build automation? In short, NuGet allows you not to have to check-in all those binaries that you depend on to build and deploy your application. If you use NuGet, it will simply download all the dependencies…

0

TFS11 Beta – TfsBuildServiceHost.2012 service stopping unexpectedly

We noticed several early adopters running into an issue with the build service in TFS11 Beta stopping unexpectedly. There is no event log entry other than it stopped and restarting it seems to work fine. The root cause seems to be connectivity to the TFS11 application tier. If the build machine can’t connect to the…

3

TFS 2010 – Using a TypeConverter to display your custom Process Parameter list type

I just helped someone today with this common problem… “How do I get my custom list process parameter to show something besides ‘(Collection)’ in the Process Parameter property grid?” The answer is really simple if you are familiar with the WinForms property grid. The PropertyGrid class looks for type converter attributes on the classes to…

5

Inline Tasks for MSBuild that work with TFS

Someone asked a question about how to do something in MSBuild the other day. They were using the UpgradeTemplate.xaml, so there build process was done almost entirely in MSBuild. What they wanted to do was fairly simple to do in a Task, but they didn’t really want the overhead of creating and maintaining a Task…

1

TFS 2010 – Overriding build settings

This post is for those that are pretty familiar with the TFS Build features in Visual Studio. If you aren’t, this may not make any sense. So, it’s Friday and you just made a gated check-in, but you can’t leave until your build finishes. So, you open up the build details view and stare at…

2

TFS 2010 – Build menu ids and guids

Okay, so I wrote a post a couple of weeks ago and exposed two of the menu guids for Build. Since then I have been asked for others, so here they all are… Menu Guid (we use the same guid for all build menus):   {34586048-8400-472e-BBBF-3AE30AF8046E} Menu Ids (in hex):  int menuTEBuilds = 0x100; This menu…

4