One of the things I need to develop this week are a number of custom check-in policies for use with Visual Studio 2005 Team System RC and Team Foundation Server Beta 3. I have downloaded the latest SDK from http://www.vsipdev.com/downloads/ which is for the Sept CTP which is the latest there at the moment.
NOTE: I have noticed around the “blogosphere” that *many* updates are due out for this product in the next week or so but I will progress on for now with the latest bits and pieces I can get.
I have managed to get a very basic shells of a custom check-in policy up and running and the basic steps are as follows;
- Add a reference to “Microsoft.TeamFoundation.VersionControl.Client.dll”
- Import the following namespace “Microsoft.TeamFoundation.VersionControl.Client”
- Implement the following interfaces IPolicyDefinition and IPolicyEvaluation
- Register the assembly in the registry at ”HKEY_LOCAL_MACHINESOFTWAREMicrosoftVisualStudio8.0TeamFoundationSourceControlCheckin Policies” on your client
I will post a complete article on the process as well as the code samples in the next couple of days.