TFS 使用新文件获取最新版本 [英] TFS get latest version with new files

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

问题描述

在向我的解决方案中添加新文件或文件夹时,我遇到了 TFS 问题.

I'm having problems with TFS when adding new files or folders to my solution.

当团队中的任何其他人尝试获取最新"时,它会更新每个更改的文件,但不会下载新添加的文件!!

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.

我不敢相信这是 TFS 的正常行为(我认为这是基本的)所以我认为我们做错了什么......知道发生了什么吗??

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??

提前致谢;-)

推荐答案

您是否也签入了与添加文件相关的项目文件?在解决方案资源管理器中,这些文件仅在它们也在本地项目文件中时才可用.还要检查尝试下载的用户是否已检出项目文件.

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.

更新:在解决方案资源管理器中,您只能获得 .proj 文件中引用文件所需的内容.对于源代码管理资源管理器,是的,如果您以前从未下载过这些文件,它应该会获取这些文件.确定的最佳方法是,而不是仅仅执行获取最新版本(它尝试将它对服务器端本地工作区的理解与服务器同步)执行获取特定版本 -> 最新版本.这样您就可以强制"下载所有项目文件,而不管现有工作区状态如何.

Update: From within Solution Explorer you'll only get what's required for the referenced files in the .proj file. For Source Control Explorer yes it should get those files if you've never downloaded them before. 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. This way you can "force" download of all project files irrespective of existing workspace status.

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

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