views:

10

answers:

1

Hey,

how can I register a custom check-in policy for VS2010/TFS2010?

For 2008 it was the following path: HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\8.0\TeamFoundation\SourceControl\Checkin Policies

But for 2010 the path ends after "TeamFoundation", even though I should already have some registered policies from the Power Tools.

I was only able to find this MSDN Blog: http://goo.gl/PB8d - But there he only shows how to register with the VSIX pkgdef file (which doesn't work completly for me). I am able to add the policy in VS2010, but I get an "assembly not registered" error if I try it: http://goo.gl/KUsH

Any ideas?

A: 

I found the answer in the MSDN forums:

Start Regedit.exe and locate the following key HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\VisualStudio\10.0\TeamFoundation\SourceControl\Checkin Policies (TFS2010) The registered policies are listed in the right pane. Right-click in the right-hand pane, point to New, and then click String Value. Type the name of your custom policy dynamic link library (DLL), without the DLL extension; CheckForCommentsPolicy in the above example. Important: The new string name must match your DLL filename exactly, without the DLL extension. Double-click the new string value and set its value to the fully qualified path and filename to the .dll containing your custom policy.

http://goo.gl/4449

Feroc