Wednesday, December 4, 2013

Fixing TF215097 error while using Nugetter on TFS Build 2010

I got the following the error while trying to run a build on TFS Build 2010 that was supposed to create a nuget package using Nugetter of a simple class library project.

TF215097: An error occurred while initializing a build for build definition \Project\BuildDefinitionName: Cannot set unknown member 'Microsoft.TeamFoundation.Build.Workflow.Activities.SyncWorkspace.RequestsFailed'.

My environment:

TFS 2010 Build Server

Nugetter 2.1

Cause: Nugetter version 2.1 is good for TFS2012 and not for TFS2010. 

Solution: For TFS 2010 version you have download 1.2 version. Another catch you have to keep in mind is that if you are using VS2012 or VS2013 then you will get error while creating a new Build Definition inside the process section.  This is because the process templates you downloaded with 1.2 version has certain assemblies related to VS2010 hard coded into it.  And for that reason you will have to clean the xaml process templates as demonstrated by  Jason Prickett in this blog post.