简体   繁体   English

TFS获取新文件的最新版本

[英]TFS get latest version with new files

I'm having problems with TFS when adding new files or folders to my solution. 在向我的解决方案添加新文件或文件夹时,我遇到了TFS问题。

When any other people in the team try to "get latest" it updates every changed file but it doesn't download the new added files!! 当团队中的任何其他人尝试“获取最新”时,它会更新每个已更改的文件,但不会下载新添加的文件!

If we go to the Source Control explorer, the new files appear as "not downloaded"... and if we force it to download, then we have to include the file in the project in his machine too. 如果我们转到Source Control资源管理器,新文件显示为“未下载”...如果我们强制下载,那么我们必须将该文件包含在他的机器中的项目中。

I can't believe this is the normal behavior for TFS (I think this is basic) so I assume we are doing something wrong... Any idea of what's happening?? 我不敢相信这是TFS的正常行为(我认为这是基本的)所以我认为我们做错了什么......对于发生了什么有什么想法?

Thanks in advance ;-) 提前致谢 ;-)

Have you also checked in the project file to which the added files are related? 您是否还检查了与添加的文件相关的项目文件? In Solution Explorer these files will only be available if they are also in the local project file. 在解决方案资源管理器中,只有当这些文件也位于本地项目文件中时,它们才可用。 Also check if the user attempting to download has the project file checked out already. 还要检查尝试下载的用户是否已检出项目文件。

Update: From within Solution Explorer you'll only get what's required for the referenced files in the .proj file. 更新:在解决方案资源管理器中,您只能获得.proj文件中引用文件所需的内容。 For Source Control Explorer yes it should get those files if you've never downloaded them before. 对于Source Control Explorer是的,如果您以前从未下载过它们,它应该获取这些文件。 Best way to be sure is rather than just do Get Latest (which tries to sync what it understands server side about your local workspace with the server) do a Get Specific Version -> Latest Version. 最好的方法是不要只是做Get Latest(它试图将服务器端了解你的本地工作区与服务器的内容)做一个获取特定版本 - >最新版本。 This way you can "force" download of all project files irrespective of existing workspace status. 这样,无论现有工作空间状态如何,您都可以“强制”下载所有项目文件。

The hint above did not help in my scenario. 上面的提示在我的场景中没有帮助。 What did do the trick was to check out an old version (with the two overwrite-checkboxes) and get the latest version afterwards (also with the two overwrite-checkboxes). 诀窍是检查旧版本(带有两个覆盖复选框)并在之后获得最新版本(也使用两个覆盖复选框)。

This is a huge bug in TFS IMO. 这是TFS IMO中的一个巨大错误。

I just had the same problem. 我刚遇到同样的问题。 My co-worker created a new file (with content, not just an empty file). 我的同事创建了一个新文件(包含内容,而不仅仅是一个空文件)。 He did a check-in, and everything went well on his end. 他办了一张办理登机手续,一切顺利。 But the file never got downloaded to my project. 但该文件从未下载到我的项目中。 I could go into Source control explorer and navigate to the file in question, then do a "get latest version" or "get specific version" on it, but it still didn't appear in my project. 我可以进入Source控件浏览器并导航到相关文件,然后在其上执行“获取最新版本”或“获取特定版本”,但它仍然没有出现在我的项目中。

Then my co-worker did some cosmetic changes to the file and did another commit. 然后我的同事对文件进行了一些修改,并做了另一次提交。 This time, when I did a simple "get latest version" on the whole project, the file downloaded without a problem. 这一次,当我在整个项目上做了一个简单的“获取最新版本”时,文件下载没有问题。

Check the most voted answer in this thread. 检查此主题中投票最多的答案。 This should be the nearest to what you are looking for 这应该是您最接近的目标

Find unadded files in Team Foundation Server 在Team Foundation Server中查找未添加的文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM