title: VS2015 VersionControlServer
body: <p>I've had to upgrade to Visual Studio 2015 and am currently having problems with my VSPackage. I need a VersionContralServer object, but everytime I debug, DTE is null.</p>
  
  <pre><code> DTE2 dte = (DTE2)Package.GetGlobalService(typeof(DTE2));
   VersionControlExt versionControlExt = dte.GetObject("Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlExt") as VersionControlExt;
   VersionControlExplorerExt versionControlExplorerExt = versionControlExt.Explorer;
   VersionControlServer version = versionControlExplorerExt.Workspace.VersionControlServer;
  </code></pre>
  
  <p>Any help appreciated.</p>