TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Entries Tagged as 'Tools and Utilities'

Getting the compile and test status as environment variables when extending TF Build using scripts

May 20th, 2014 · 1 Comment · Team Foundation Build (TF Build), Tools and Utilities

The Goal When running custom batch or PowerShell scripts as part of TF Build, you want to access the compilation and test result using an environment variable. The Solution When you use the new TfvcTemplate.12.xaml build process template, it’s easy to run additional scripts or tools as part of the build process. There is a […]

[Read more →]

Tags:

Writing the Build Report with Associated Changesets and Work Items to a file as part of the build

May 19th, 2014 · 9 Comments · Team Foundation Build (TF Build), Tools and Utilities

The Goal TFS has a nice Build Reporting, including a list of associated changesets and work items (if any). You might want to have this information saved to a file during a build. The Solution When you use the new TfvcTemplate.12.xaml build process template, it’s easy to run addition scripts or tools as part of […]

[Read more →]

Tags:

Notifying users when a particular work item changes in TFS

May 14th, 2014 · 9 Comments · 18401, 18402, Tools and Utilities

The Goal In TFS you can set up Project Alerts that alert users when work items change. But sometimes you would like to be able to add a list of people to be notified when a particular work item changes. The Solution You can achieve this by using a server-side plug-in. Here’s a step-by-step guide: […]

[Read more →]

Tags:

Turning off policy overrides in TFS

May 13th, 2014 · 4 Comments · 18401, Team Foundation Server, Team Foundation Version Control, Tools and Utilities

The Goal Check-In policies have been around since the first version, TFS 2005, to help a team define a list of steps they want to perform prior the checking in. If a policy is not met, it alerts the user. When policies fail, there is an option to “override” the warning(s) and continue with the […]

[Read more →]

Tags:

Extending TFS’ default behavior using server-side plug-ins

May 12th, 2014 · No Comments · 18401, Team Foundation Server, Team Foundation Version Control, Tools and Utilities

In TFS 2005, Check-In Policies helped to ensure certain rules prior to check-in. However, check-in policies are executed locally and you must ensure they are available for the client (in the appropriate version) and installed. In TFS 2010, Gated Check-Ins were introduced, which allowed validations such as the compilation, unit test execution and more (basically […]

[Read more →]

Tags:

Updated Tools for TFS 2013

May 5th, 2014 · 5 Comments · Downloads, Tools and Utilities

Meanwhile I updated most of my tools for TFS 2013. Here’s a list: TfsClean.exe – Finds and deletes old and unused workspaces and shelvesets. TfsCreateBuild.exe – Creates “fake” builds in TFS without actually running them.(e.g. can be used to store the build results from a different build system) TfsExport.exe – Download files from TFVC without […]

[Read more →]

Tags:

Restart Team Foundation Server AT using command line

December 24th, 2012 · No Comments · Tools and Utilities

In order to restart the TFS app tier, you can run these commands on the AT itself: %windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:"Microsoft Team Foundation Server Application Pool" net stop tfsjobagent net start tfsjobagent You can download the ready-to-use script file here. Note: You need to run this script as administrator.

[Read more →]

Tags:

Available Check-In Policies for Team Foundation Server 2012

October 15th, 2012 · 2 Comments · Project Management with TFS, Team Foundation Server, Team Foundation Version Control, Tools and Utilities, Visual Studio Online

Shipping as part of Visual Studio 2012: Builds – Requires that build was successful (CI builds) and therefore build breaks must be fixed before a new check-in. Changeset Comments Policy – Requires that user provide comments on check-ins. (new in VS 2012) Code Analysis – Requires that Code Analysis is run before check-in. [More] Work […]

[Read more →]

Tags:

Export TFS Work Items to an .XML file (using TFS Power Tools)

November 21st, 2011 · 1 Comment · TFS Work Item Tracking, Tools and Utilities

Steps: Download Team Foundation Server Power Tools. On the command line use the TFPT.exe utility to export all work items from a team project in .XML format: tfpt query /collection:<URL> /format:xml /wiql:"SELECT * FROM WorkItems WHERE [System.TeamProject] = ‘<TeamProject>’ AND [System.WorkItemType] <> ‘Sprint’ ORDER BY [System.Id]" > WorkItems.xml As you can see I selected all […]

[Read more →]

Tags:

Download: Visual Studio 2010 Project Template for TFS Utilities

November 16th, 2011 · 4 Comments · TFS 2010, TFS Extensibility, Tools and Utilities

If you develop small utilities for Team Foundation Server a lot, you might want to save some time and use a project template (see bottom of post for download link) that already comes equipped with the correct references to the Team Foundation Object Model (Microsoft.TeamFoundation.*.dlls) as well as the most important using statements and a […]

[Read more →]

Tags: