visual-studio - 当文件在 Visual Studio 外部更改时,如何更新 TFS 中的解决方案文件?

标签 visual-studio tfs version-control

我在VS2015解决方案中有一堆Word文件。这些文件已被最终用户修改,我正在尝试在 TFS 源代码管理中更新它们。我所做的就是在我的解决方案中检查它们,并将用户副本复制到 Windows10 文件资源管理器中的解决方案文件夹中。我希望待定的更改将包括新的文件副本。然而,当我 checkin 它们时,我收到一条 TFS 消息,其中显示这些文件中没有进行任何更改。我错过了什么吗?如果可以的话请帮忙。谢谢。

最佳答案

此问题可能重复 How to have TFS 2010 detect changes done to files outside of Visual Studio?

最好的解决方案是使用 reconcile in TFS 。比较服务器文件夹和本地文件夹后,您可以协调文件夹内容之间的差异以及本地文件夹中存在冲突的待处理更改的文件之间的差异。详细步骤如下:

  1. Open the Source Control Explorer
  2. Right-click on the folder with the changes and choose Compare
  3. Select the files you want to reconcile (press CTRL+A to select all files)
  4. Click on the Reconcile button
  5. Set the options in the Reconcile Folder Differences dialog. Make sure Files that do not have pending changes is set to Check Out
  6. Click OK
  7. If you have local changes the Check Out dialog will be shown. Set the preferred Lock type
  8. Click Check Out

Reconcile Folder Differences

关于visual-studio - 当文件在 Visual Studio 外部更改时,如何更新 TFS 中的解决方案文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40924888/

相关文章:

windows - 进入源代码管理

sql-server - Redgate SQL Source Control 推荐的开发-测试-实时数据库工作流程

c# - 当 Visual Studio 显示 "the best overloaded method match has some invalid arguments"时,需要采取哪些通用步骤?

c++ - C++ 中 64 位整数的奇怪行为

c++ - 如何在 Visual Studio C++ 中的 Intellisense 自动完成方法名称后自动插入括号

TFS 2013 Web Access 燃尽图未显示任何数据

TFS2015构建服务器: Access to user path denied when enabling the extension with a VSIX

git - git 决定不提交新添加文件的当前内容,而是提交添加时的内容,其背后的基本原理是什么?

c# - 如何将 native 库复制到 Visual Studio 2010 中的单元测试暂存目录

tfs - 使用测试影响分析的 TFS 2013 和 VS 2013 是否可以与 NUnit 一起使用