Checkin Policy not working after upgrading to VS 2015

Viewed 2366

We are running VS2013, along with VSTS for source control. We have a checkin policy that enforces a checkin Comment and for the user to assign a Work Item(s) to the checkin. This has been working fine as expected for a while.

enter image description here

Recently, I got one of the developers to test VS2015 Update 1. He is now reporting to me that the checkin policy doesn't seem to work properly; even though he correctly adds a Comment and assigns a Work Item for the checkin, the system doesn't seem to recognise them and it gives a 'policy failure' warning like this:

enter image description here

Is this a known bug with VS2015? Or some sort of compatibility issue upgrading from 2013 to 2105?

3 Answers

In the past years, we also had to update our check in policies, from 2013 to 2015.

Here is somethings you may check.

  1. Recompile your CheckInPolicy project updating Visual Studio Assemblies references:

    • Microsoft.TeamFoundation.Client;
    • Microsoft.TeamFoundation.VersionControl.Client;
  2. Register your Policies:

    • [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0_Config\TeamFoundation\SourceControl\Checkin Policies] "YourCheckInPolicies"="PathToYourCheckInPolicies.dll"
    • [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\TeamFoundation\SourceControl\Checkin Policies] "YourCheckInPolicies"="PathToYourCheckInPolicies.dll"

Hope it helps. Regards, Wilsade

The company I'm working at changed our PCs and we had the same problem when we needed to install VS.NET 2015 for some old projects.

I simply copied the below directory's content (from an old PC where policies worked) and placed it in the same directory, in the new PC.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer

If the directory Team Explorer doesn't exists, create it manually and put the content into it.

OBS: When I did it, I already had VS.NET 2015 Power Tools installed.

So, try to solve it with these two steps:

  1. Install Power Tools to VS.NET 2015 as mentioned in the other answers.
  2. Copy necessary DLLs files to Team Explorer directory. I made a copy of them here.

This was my registry after installed Powetools, and because of that I tried to paste files manually... I got lucky. It worked.

Related