[英]Item does not exist when check in TFS
I use VS 2013 to check-in a file to TFS 2012 and get the following error:我使用 VS 2013 将文件签入到 TFS 2012 并收到以下错误:
The item $/MyTeamProject/MyProject/MyInterface/IAllocationBLL.cs does not exist at the specified version, or you do not have permission to access it.
Other files just work fine.其他文件工作正常。 I notice that the Last Check-in
date is missing.我注意到缺少Last Check-in
日期。
If I undo this file, it then disappears on TFS.如果我撤消此文件,它就会在 TFS 上消失。 When I edit this file again, it back to TFS and still missing Last Check-in
.当我再次编辑此文件时,它返回到 TFS 并且仍然缺少Last Check-in
。 I still get the same error checking in this file.我仍然在这个文件中得到同样的错误检查。 Any advice would be appreciated.任何建议将不胜感激。
最好的方法是将文件保存为外部备份,然后撤消,在整个项目中签入,然后再次将文件添加到项目中。
I had same/similar issue today.我今天遇到了相同/类似的问题。 Didn't found proper (or easy) solution online, and here is my workaround:没有在网上找到合适(或简单)的解决方案,这是我的解决方法:
VOILA - your file is under source control again.瞧 - 您的文件再次受到源代码控制。
I received this error with Visual Studio 2019 and was able to resolve it by:我在 Visual Studio 2019 中收到此错误,并能够通过以下方式解决它:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.