如何在TFS控制下从项目中删除空文件夹? [英] How to remove a empty folder from a project under TFS control?

查看:101
本文介绍了如何在TFS控制下从项目中删除空文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个项目MyLib,在此之下,我创建了一个名为Folder1的文件夹.该文件夹下没有文件. 该项目已连接到TFS.

Suppose I have a project MyLib, under that, I created a folder say Folder1. No file under this folder. The project is connected to TFS.

然后,我要删除此文件夹Folder1.我从上下文菜单中将其删除,然后将项目签入TFS.

Then I want to remove this folder Folder1. I deleted it from context menu and checked the project into TFS.

然后我使用Team Explore->源代码管理检查TFS上的数据,Folder1被删除. 但是它在本地计算机上的VS 2010中仍然存在. 我关闭了VS 2020,并从寡妇探索中删除了Folder1. 然后再次打开VS 2010,Folder1仍然存在.我无法从MyLib本地删除它!

Then I check the data on TFS with Team Explore->Source Control, Folder1 is deleted. But it is still there in VS 2010 on local computer. I closed VS 2020 and deleted Folder1 from widows explore. Then open VS 2010 again, the Folder1 is still there. I can't remove it locally from MyLib!

困惑.如何解决这个问题?

Confused. How to resolve this problem?

推荐答案

只需在文件夹中创建一个文件,然后将其与新文件一起删除.当您尝试删除空文件夹时,TFS会出现一些问题.

Simply create a file within the folder and delete it along with the new file. TFS has some problems with empty folders when you try to delete them.

这篇关于如何在TFS控制下从项目中删除空文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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