Geeks With Blogs



Utkarsh Shigihalli Microsoft MVP and Microsoft ALM Ranger writing on Visual Studio Extensibility, ALM and .NET

If you have extended Team Explorer 2012 through your Visual Studio extension, I am sure you would have referred code from this article. The code in that article provides you all the necessary infrastructure to quickly integrate your extension with Team Explorer in Visual Studio 2012. However, with Visual Studio 2013 RC released, you will face an issue if you use the same base project to migrate your extension to Visual Studio 2013. So, in this blog post I will let you know what is the issue you will encounter, cause for it and how to resolve it.


“InvalidCastException error in GetService<T> method”

Additional information: Unable to cast object of type 'Microsoft.VisualStudio.Services.Integration.ContextManager' to type 'Microsoft.TeamFoundation.Client.ITeamFoundationContextManager'.




The project is referencing Visual Studio 2012 assemblies.


Refer to Visual Studio 2013 assemblies

  1. Remove the following assembly references from the TeamExplorerIntegration project.


  2. Refer to the Visual Studio 2013 assemblies. The above three assemblies are present in below path
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ReferenceAssemblies
[Update] For detailed steps on how to upgrade Visual Studio 2012 extension to Visual Studio 2013, please refer my friend Tarun's great post.
Posted on Saturday, September 14, 2013 6:23 PM .NET , Visual Studio Integrate , VSX | Back to top

Comments on this post: Issues while extending Team Explorer in Visual Studio 2013

comments powered by Disqus

Copyright © Utkarsh Shigihalli | Powered by: