我在Visual Studio 2012(在TFS源代码控制下)中打开了我的解决方案,而TFS服务器(2010)关闭了。当我对其中一个文件进行更改并试图保存它时,我得到了一个提示,问我是否想要覆盖文件,说TFS服务器宕机了(不记得确切的单词),并且在输出窗口中出现了以下消息:
This solution is offline. [Team Foundation Server: http://tfs1:8080/tfs/server]
The solution was offline during its previous session and will remain offline.
如何让文件更改被识别为挂起更改,并使整个解决方案重新联机?
(如果您缺少AutoReconnect或脱机注册表值,则从上述解决方案中选择额外步骤)
针对Visual Studio 2015,版本14
Turn off all VS instances
HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0\TeamFoundation\Instances{YourServerName}\Collections{TheCollectionName} (To get to this directory on Windows, hit the Windows + R key and search for "regedit")
Set both the Offline and AutoReconnect values to 0.
If you are missing one of those attributes (in my case I was missing AutoReconnect), right click and and create a new DWORD(32-bit) value with the desired missing name, AutoReconnect or Offline.
Again, make sure both values are set to zero.
Restart your solution
额外的信息:
博客MSDN -我的解决方案何时以及如何下线?