TFS '所有文件都是最新的' [英] TFS 'All files are up to date'

查看:36
本文介绍了TFS '所有文件都是最新的'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

我得到所有文件都是最新的"和 TFS 的获取最新"(在父目录和解决方案级别),但它们显然不是(有一些其他人已经签入的文件夹,我不是得到).我可以看到它们本地存在于适当的位置(这肯定是映射的),但我绝对无法将它们添加到解决方案资源管理器中.

我在 VS 2013 中.

我的尝试

1) 从文件资源管理器中拖放文件夹.不起作用 - VS 显然不允许这样做.

2) 右键单击​​解决方案资源管理器中的父文件夹,单击添加 -> 现有项目".显然你不能添加整个文件夹,所以单独添加是不好的,因为所有子目录中有超过 2000 个项目.

3) 右键单击​​,源代码管理 -> 获取特定版本"选中关于覆盖的两个框.

4) 重复第 3 步,但首先删除文件资源管理器中的文件夹.这些文件会重新添加到文件资源管理器中,但不会重新添加到解决方案资源管理器中.

5) 我发现这个

要将文件添加到解决方案,请右键单击并选择添加 |现有项目:

Issue

I get 'All Files are up to date' with TFS's 'get latest' (Both at the parent directory and solution level) when they clearly aren't (there are a few folders that others have checked in that I am not getting). I can see they exist locally in the appropriate location (which is most certainly mapped) but I absolutely can not get them added to solution explorer.

I'm in VS 2013.

What I've Tried

1) Drag and drop the folders from the file explorer. Doesn't work - VS apparently doesn't allow this.

2) Right click the parent folder in Solution Explorer click 'Add -> existing item'. Apparently you can't add an entire folder, so adding individually is no good as there are over 2000 items in all the sub-directories.

3) Right click, 'Source Control -> Get Specific Version' check both boxes regarding overwriting.

4) Repeat step 3, but first delete folder in the file explorer. The files get re-added to file explorer, but not Solution Explorer.

5) I found this Visual Studio Solution Explorer not showing files and folders and tried it, also to no avail.

6) Multiple combinations of all the above steps, restarting VS, etc.

Thanks!

EDIT 2/24/2016

Adding this here as a reference diagram for my comment in response to the answer, as I can't use new lines in a comment.

File Structure:

FooFolder |-foo.txt |-BarFolder |--bar.txt

In the above example, you still have to ctrl+click through foo.txt and bar.txt separately, since select all would include the folders and disallow add to solution.

解决方案

If you see the "missing" files on your local file system after a Get Latest then they are correctly in Source Control. To add the files to your project you need to Show All Files then you can right click each and Include in Project:

To add files to the solution right click and choose Add | Existing Item:

这篇关于TFS '所有文件都是最新的'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆