Can't delete folder in SCC Explorer

I can create new folder when add project into the SCC, however, after I delete the project in the SCC, the folder can't be deleted.

The problem may be caused by that I just add the projects without adding the solution. Could I manually delete a folder in other tools(command line or in database)?

[299 byte] By [LeiJiang] at [2007-12-16]
# 1

From the command line (Start -> Microsoft Visual Studio 2005 Beta 2 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt), you can use the "h delete" command to delete the folder.

I'd like to know a little more about the problem with deleting it in the Source Control Explorer, however. Is the folder greyed out? What happens when you try to delete? Do you get an error message, or does nothing happen?

thanks,
-Jason

JasonBarileMSFT at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 2
Thank you for your help. I didn't know there is a command interface for the version control before :P

I can't delete it since the "delete" command has grayed. And the folder is grayed out too.

LeiJiang at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 3
The folder being grayed out means that you don't "have" it in your workspace (that is, you haven't run get on it). To delete an item (file or folder), whether from the command line or the Source Control Explorer, you must have the item in your workspace. For now, you can right click on the folder in the Source Control Explorer and choose Get to get it. Then you can pend a delete on it.

I'll file a bug asking that the restriction of needing to have the item be removed for delete, though it may not make the cut for version 1.

Buck

BuckHodges at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 4
The folder is created during the process of adding projects into the SCC. However, this folder does not mapped to my local folder, and when I click on the SCC folder in the SCC explorer, it shows "no mapping". However, I don't know how to map it to my local folder.

This is the detailed process:

My local project (Test.csproj) is in D:\Dev\src\DWM\Test

I then add it to SCC under the project DWM, during the adding process, I create a folder in SCC named DWMApp, the "Test" is then put under that.

So finally in SCC the path is $DWM\DWMApp\Test

When I click DWMApp icon, it shows it is not mapped, and I don't know how to map it.

LeiJiang at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...
# 5
Lei,

You can check your workspace mappings through the IDE. Under file menu->Source Control-> Workspaces. You should have a default workspace which is the same name as your hostname (machine name). You can select that workspace and click Edit, then choose the repository folder (e.g.: $/MyTeamProjectName/DWM/DWMApp/Test) and local folder (e.g.: d:\dev\src\DWM\test).

Once you have your mapping setup, go back to scc explorer, right click on your folder DWM and select "get latest" (make sure the workspace dialog dropdown is selected to the correct workspace). After you do get latest, your folder shouldn't be greyed out and you can delete your folder.

Hope this helps,
Cissy.

CC.NET at 2007-9-8 > top of Msdn Tech,Visual Studio Team System,Team Foundation Server - General...

Visual Studio Team System

Site Classified