TFS 签入错误 - 找不到文件 [英] TFS checkin error - could not find file

查看:37
本文介绍了TFS 签入错误 - 找不到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

签入我的项目时出现错误:

When checking in my project I get the error:

Could not find file 'C\blah blah blah'.

我感觉这可能是我删除的旧项目中的文件.

I have a feeling this might be a file from an old project I deleted.

我已尝试删除我的 TFS 连接和工作区.

I have tried deleting my TFS connection and workspaces.

推荐答案

当 TFS 有一些文件系统上不再存在的更改时,就会发生这种情况.例如,如果您在 Visual Studio 中添加一些文件(将它们添加到更改列表中),直接从文件系统中删除它们,然后尝试签入更改,它会抱怨找不到文件.

This will happen when TFS has some changes staged that no longer exist on the file system. For instance, if you add some files in Visual Studio (which adds them to the changes list), delete them directly from the file system, then attempt to check in the changes, it will complain that it could not find the file(s).

要从列表中删除这些更改,您可以打开源代码管理资源管理器(查看 > 其他 Windows > 源代码管理资源管理器)和删除不存在的文件或右键单击有问题的文件并撤消挂起的更改.

To remove these changes from the list, you can open Source Control Explorer (View > Other Windows > Source Control Explorer) and either Delete the nonexistent files or right-click on the offending files and Undo Pending Changes.

您还可以从团队资源管理器中的待定更改"面板撤消这些特定更改.

You can also undo these specific changes from the Pending Changes panel in Team Explorer.

这篇关于TFS 签入错误 - 找不到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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