I am using Visual Studio 2008 with TFS. I have one workspace set up with one working folder. I map the root source control folder $/ to C:\TFS and get all code. When working on any project under the root, Visual Studio will randomly add 开发者_JS百科incorrectly mapped working folders to my workspace.
For example, it might map $/WebProject/ to C:\TFS\WebProject\DataAccess -- where the real files exist at C:\TFS\WebProject.
Once it incorrectly adds these working folders, I can no longer open the solution. I am forced to remove the working folders that Visual Studio added and get latest from TFS.
Has anyone experienced this? Is there something I can do to avoid running into this?
go to "Source Control Explorer". Click on the "Workspace" dropdown. Select "Workspaces" and delete any custom workspaces you don't need.
Update:
Your vs2008 TFS cache might be corrupt. Your cache is located here:
C:\Users\YourUserName\AppData\Local\Microsoft\Team Foundation\1.0\Cache
Install Team Foundation Sidekick and look at your workspaces
http://www.attrice.info/cm/tfs/
http://www.attrice.info/images/workspace_sk_screen.gif
What do you see there?
精彩评论