TFS 2010-签入更改之前在Visual Studio解决方案中删除文件夹 [英] TFS 2010 - Deleting a folder in Visual Studio solution before check-in of changes

查看:134
本文介绍了TFS 2010-签入更改之前在Visual Studio解决方案中删除文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用TFS 2010,并且在删除Visual Studio解决方案中的文件夹时遇到问题.

We are using TFS 2010 and facing a problem with deleting a folder inside of a solution in Visual Studio.

在最新版本的签入代码中,有问题的目录中包含文件.

In the latest version of checked-in code, the directory in question has files in it.

一个开发人员决定将该目录中的文件移动到解决方案中的另一个位置.然后,他尝试删除旧文件夹,但出现以下错误:

One of the developers decided to move the files in that directory to another location within the solution. He then tried to delete the old folder but go the following error:

This operation cannot be completed. 
You are attempting to remove or delete a source-controlled item where the item is either exclusively locked elsewhere or otherwise unable to be deleted from source control.

有人知道尝试这样做的问题是什么,有办法解决吗?

Does anyone know what the problem is with trying to do this and is there a way to get around it?

推荐答案

您不能删除在其任何子项上有待更改的文件夹(包括如果其中任何一个子项都已移出该文件夹-它们仍在)直到签入变更集为止.)

You cannot delete a folder that has pending changes on any of its children (including if any of those children are being moved out of the folder - they're still children until that changeset is checked in.)

您必须分两个步骤执行此操作:首先,将子级移出文件夹并签入那些更改,然后将文件夹作为单独的更改集删除.

You'll have to do this in two steps: first, move the children out of the folder and check those changes in, then delete the folder as a separate changeset.

这篇关于TFS 2010-签入更改之前在Visual Studio解决方案中删除文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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