TeamFoundation.VersionControl.HatPackage failed to load

visual-studio-2013

Solution

I had the same issue after I installed Update 4 for VS 2013 (I have Premium edition)

The Team explorer / source control Explorer were drawing blanks.

After a couple of wasted hours (I was avoiding uninstall/re-installing), I could resolve this issue after I re-installed the Team Explorer for VS 2013. http://www.microsoft.com/en-us/download/details.aspx?id=40776

Problem

I'm getting this error in VS2013 when loading a project under source control: Package 'Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage, Microsoft.VisualStudio.TeamFoundation.VersionControl, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed to load. HOWEVER, unlike all the other posts about this there is NO config file to delete under C:\Users\username\AppData\Local\Microsoft\Team Foundation\5.0 \Cache The folder is simply empty. I tried repairing the whole installation as well

Original source