DCSIMG
TFS Utilities,.NET 3.5,TFS Administration - Shai Raiten's Blog

Shai Raiten's Blog

It's all about code...

Browse by Tags

All Tags » TFS Utilities » .NET 3.5 » TFS Administration (RSS)
How to get the login dialog when using the Team Foundation Server API
How to get the login dialog when using the Team Foundation Server API Published On: Buck Hodges Blog Someone asked how to get the login dialog if the user fails to authenticate. The code to do that is shown below. I copied the call to the constructor from the basic API example , and I've added code to create and pass a UICredentialsProvider object to the TeamFoundationServer constructor. Also, I'm now calling EnsureAuthenticated (). The purpose of that call is to make sure that the user is...
How To Create Custom Check-In Policy
How To Create Custom Check-In Policy Create a new Visual C# class library project. Add an assembly reference to System.Windows.Forms.dll . You use this assembly to display message boxes. Add an assembly reference to Microsoft.TeamFoundation.VersionControl.Client.dll. By default, this is installed in the following folder:\Program Files\Visual Studio 2008 Team Foundation Server\Tools Replace your skeleton class code implementation with the following source. Note that the class derives from the PolicyBase...