I’ve created a custom check-in policy in Visual Studio 2010 (in C# with .Net 3.5). I’ve followed the guide here to create this: http://msdn.microsoft.com/en-us/library/bb668980.aspx
I’ve added a new registry key as listed in Step 2 but my check-in policy does not appear in the list for me to select (as instructed by step 3.3).
I have triple checked the following aspects:
- The registry string key is named the same as my DLL without the DLL extension.
- The registry key value points to the full path to the Debug assembly including the full file name with extension (I’ve also tried using the Release version too).
Can anyone suggest why this is not showing up?
I managed to find the issue. I was missing the [Serializable] attribute on the main class that inherits from
PolicyBase. And this wasn’t causing any errors.