是否可以在 TFS 关闭时编辑代码

Is it possible to edit code while TFS is down

我的 TFS 挂了,它链接到我在 Visual Studio 2017 年的解决方案。

如果我在我的解决方案中编辑任何文件,当我需要在 TFS 备份时签入时会导致错误吗?

我收到一条提示,说有写保护,这与我有关。


You can either save the file in a different location or Microsoft Visual Studio can attempt to remove the write-protection and overwrite the file in its current location.

离线工作时最好使用本地工作区而不是服务器工作区。

Work offline with difficulty and with poor performance.

When you are offline in a server workspace, you cannot work with your local files because they are read-only until you check them out. You can check out files only from Solution Explorer, and only after you switch to offline mode (as explained below). While you're offline, you can't perform any other operations, such as add, delete, rename, or undo.

  1. 转到Solution Explorer
  2. 右键单击您的解决方案
  3. 点击Go online

更详细的本地和服务器工作区的优缺点,请参考我们的官方link。如果上述解决方案仍然无效,建议重新启动整个 Visual Studio,这应该可以解决问题。