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.
Then I want to remove this folder Folder1. I deleted it from context menu and checked the project into TFS.
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?
In either Solution Explorer or Source Control Explorer, browse to the folder or file that you want to delete. Select the items that you want to delete, open their context menu (right-click), and choose Delete.
Many times empty directories get cluttered in the Linux file system, and it becomes a difficult task to manually search for and delete each of them. The command rmdir (remove directory) is used in Linux to delete empty folders.
Just select the folder after selecting the "Add Items to Folder..." option. You can get to this is from the context menu you get when right clicking on a folder (either the name or the actual folder itself). The next page of the wizard will present you with lists of included and excluded files.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With