在 Visual Studio 之外删除了一个文件,TFS 无法识别它 [英] Deleted a file out side Visual Studio, TFS doesn't recognize it

查看:27
本文介绍了在 Visual Studio 之外删除了一个文件,TFS 无法识别它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 TFS 的新手.我使用 Visual Studio 从 TFS 中检出了一个文件夹,然后使用 Windows 资源管理器在该文件夹中删除了一堆文件/添加了几个文件(实际上我没有这样做,但该文件夹具有第三方库,我使用了一个安装程序所有这些变化).

I am new to TFS. I checked out a folder from TFS using Visual Studio and then deleted bunch of files/added couple of files within that folder using windows explorer (actually I didn't do it, but that folder has third party libraries and I used an installer which made all these changes).

现在,如果我转到 Visual Studio 并尝试签入该文件夹,则会收到此错误:

Now if I go to Visual Studio and try to check in that folder, I am getting this error:

签入:未执行操作

找不到文件:/ThirdPartyFolder/aDeletedFile.aspx

Could not find file : /ThirdPartyFolder/aDeletedFile.aspx

我尝试按照本文中提出的解决方案进行操作,但没有成功:http://www.woodwardweb.com/tfs_top_tip/tfs_top_tip_11.html

I tried to follow the solution proposed in this post, but that didn't work out: http://www.woodwardweb.com/tfs_top_tip/tfs_top_tip_11.html

当我执行获取特定版本"并指定更改集 1"时,它不会像该博客文章的屏幕截图那样以红色显示已删除的文件.此外,当我单击确定"时,它会显示Pending Changes-Conflicts"窗口,其中包含所有已删除的文件.即使我选择了保留本地版本",当我尝试签入时,我再次遇到相同的错误.

When I do 'Get Specific Version' and specified 'change set 1', it doesn't show the deleted files in red as it does in the screenshot of that blog post. Also, when I click OK, it shows the Pending Changes-Conflicts window with all the files that got deleted. Even though I selected "Keep Local Version", when I try to check in, I am getting the same error again.

在 TFS 中有没有办法获取我本地版本中的内容并用我的本地版本文件覆盖服务器中的内容?

Is there a way in TFS to take what is in my local version and over write what is in the server with my local version files?

我用Subversion做过类似的操作,从来没有出现过这个问题.希望有人能让我知道如何在 TFS 中实现这一点.

I have done similar operations using Subversion, and this has never been a problem. Hopefully someone will let me know how to achieve this in TFS.

推荐答案

Team Foundation Server 要求您显式挂起对这些文件的更改 - 如果您在本地删除文件,这不会显式挂起针对 Team Foundation Server 的删除.这实际上是一个有用的功能 - 服务器根据其对本地文件系统的了解来优化它发送给您的数据.也就是说,如果您说获取最新版本",它知道您当前的版本并且只会交付更改.如果您正在处理非常大的项目,这会非常高效.

Team Foundation Server requires that you explicitly pend changes for these files - if you delete a file locally, this does not explicitly pend a delete against Team Foundation Server. This is actually a useful feature - the server optimizes the data it sends you based on its knowledge of your local filesystem. That is to say, if you say "get latest", it knows your current versions and will only deliver the changes. If you're working with very large projects, this can be very efficient.

但是,当其他程序决定在不挂起对服务器的更改的情况下进行更改时,事情可能会变得有点混乱.幸运的是,TFS 能够检测外部所做的更改,而无需明确挂起这些更改.您可以使用 TFS 客户端的在线退货"功能.

However, when other programs decide to make changes without pending the changes to the server, things can get a bit confused. Fortunately, TFS has the ability to detect changes that were made outside without explicitly pending those changes. You can use the "return online" capabilities of your TFS client.

您需要安装 Team Foundation Server Power Tools,然后您可以简单地运行:tfpt online 来检测这些更改并选择要挂起到服务器的更改.

You'll need the Team Foundation Server Power Tools installed, then you can simply run: tfpt online to detect those changes and select which ones to pend to the server.

这篇关于在 Visual Studio 之外删除了一个文件,TFS 无法识别它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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