我在VS2015解决方案中有一堆Word文件。这些文件已被最终用户修改,我正在尝试在 TFS 源代码管理中更新它们。我所做的就是在我的解决方案中检查它们,并将用户副本复制到 Windows10 文件资源管理器中的解决方案文件夹中。我希望待定的更改将包括新的文件副本。然而,当我 checkin 它们时,我收到一条 TFS 消息,其中显示这些文件中没有进行任何更改。我错过了什么吗?如果可以的话请帮忙。谢谢。
最佳答案
此问题可能重复 How to have TFS 2010 detect changes done to files outside of Visual Studio?
最好的解决方案是使用 reconcile in TFS 。比较服务器文件夹和本地文件夹后,您可以协调文件夹内容之间的差异以及本地文件夹中存在冲突的待处理更改的文件之间的差异。详细步骤如下:
- Open the Source Control Explorer
- Right-click on the folder with the changes and choose Compare
- Select the files you want to reconcile (press CTRL+A to select all files)
- Click on the Reconcile button
- Set the options in the Reconcile Folder Differences dialog. Make sure Files that do not have pending changes is set to Check Out
- Click OK
- If you have local changes the Check Out dialog will be shown. Set the preferred Lock type
- Click Check Out
关于visual-studio - 当文件在 Visual Studio 外部更改时,如何更新 TFS 中的解决方案文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40924888/