Error using TFS Power Tools – Task “WITs” from Group “WorkItemTracking” failed

You might have come across this error while trying to create a new Team Poject using TFS Power Tools

2012-05-28T10:05:52 | Module: Work Item Tracking | Thread: 17 | Uploading work item type from file ‘C:Documents and SettingsusdrLocal SettingsTempTPW_tmp23.tmpWorkItem TrackingTypeDefinitionsBug.xml’…<br>—begin Exception entry—<br>Time: 2012-05-28T10:05:52<br>Module: Engine<br>Event Description: TF30162: Task “WITs” from Group “WorkItemTracking” failed<br>Exception Type: Microsoft.TeamFoundation.Client.PcwException<br>Exception Message: TF24016: Cannot find team project ‘MyTestG’.<br>Stack Trace:<br>at Microsoft.VisualStudio.TeamFoundation.WorkItemTracking.WitPcwPlugin.PcwPluginComponentCreator.Execute(ProjectCreationContext ctxt, XmlNode taskXml)<br>at Microsoft.VisualStudio.TeamFoundation.ProjectCreationEngine.TaskExecutor.PerformTask(IProjectComponentCreator componentCreator, ProjectCreationContext context, XmlNode taskXml)<br>at Microsoft.VisualStudio.TeamFoundation.ProjectCreationEngine.RunTask(Object taskObj)<br>– Inner Exception –<br>Exception Message: TF24016: Cannot find team project ‘MyTestG’. (type WitPcwFatalException)

In most cases this error is due to cache problem on the user’s local machine where this tool is being run from. To resolve this issue

1. Close any instances of Visual Studio if open.

2. Delete everything from this location C:Users{username}AppDataLocalMicrosoftTeam Foundation3.0Cache

 

Hope this helps!

Compile a specific changeset with Team Build 2010 (TFS)

By default the Team Foundation Server 2010’s build engine pulls the latest version of the code when you queue a build with any build definition. However it is very easy to override this and specify what changeset or label you want to compile instead of the latest version. To achieve this queue a build definition as you would normally. On the dialogue that props up find the “Get Version” property under Advanced section on the “Parameters” tab as shown below

 

Specify particular changeset to use with team build 2010
Specify particular changeset to use with team build 2010

 

In here you can specify the same TFS changeset that was used to build your build in step 2. Assuming this changeset is number 84, you would write (exactly)

C84

if you compile labels then for a label named – “For build xyz” you specify

LFor build xyz

Note that “C” and “L” above are intentional.

That’s it!

Contact Us