title: After move TFS, Workstation.Current.GetLocalWorkspaceInfo returns old host name
body: <p>We recently moved our TFS-Instance to another server. I've changed the TFS mapping in the Visual Studio Settings for 'Manage connections' - Get latest version and all TFS features work as expected. </p>
  
  <p><strong>Problem:</strong> We have a tool, which allows us to move files to a dedicated directory in TFS by it's filename. To determine the TFS uri, this tool uses the following code:</p>
  
  <pre><code>WorkspaceInfo workspaceInfo = Workstation.Current.GetLocalWorkspaceInfo(sourceDirectory);
  </code></pre>
  
  <p>and this method returns the old TFS uri instead of the new one, even though the workspace information mapping points to our new server...?</p>
  
  <p><a href="https://i.stack.imgur.com/vJBtj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vJBtj.png" alt="Workspace information is correct"></a>
  <a href="https://i.stack.imgur.com/7cVtN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7cVtN.png" alt="And debug output returns still old host path"></a></p>