“IBuildDetail not defined” error in TFS 2010 Build Templates

12/12/2011

2 comments

Recently I started receiving the following error when trying to edit TFS 2010 build templates on my machine:

Type ‘IBuildDetail’ is not defined

This was exceptionally weird as TFS was running happily for quite a while.  Turns out the culprit was the Developer Preview edition of Visual Studio 11 that I installed alongside the existing VS2010. 

Anyway, in order to solve the problem:

1.  Open your build template (the .xaml file) in code mode.  (From the Source Explorer, right-click the file, choose ‘View With…’ and select ‘XML (Text) Editor’.

2.  Locate the first line, which starts with <Activity mc:Ignorable=”sad” … >

3.  Replace the following:

 

xmlns:mtbc=”clr-namespace:Microsoft.TeamFoundation.Build.Client;
assembly=Microsoft.TeamFoundation.Build.Client”

with

xmlns:mtbc=”clr-namespace:Microsoft.TeamFoundation.Build.Client;
assembly=Microsoft.TeamFoundation.Build.Client, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”

and

xmlns:mtbwa=”clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build
.Workflow”

with

xmlns:mtbwa=”clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build
.Workflow, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”

That is, use the full assembly name from VS2010.  Otherwise, the workflow editor gets confused between versions from VS2010 and VS11.

Happy Building!

 

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

2 comments

  1. Camilo25/07/2012 ב 18:56

    Thanks a lot!

    Reply
  2. Nimrod24/02/2013 ב 05:48

    Thanks Yuaval!
    right on the money!

    Reply