Posts filed under ‘visual studio’

I can’t create a new folder in TFS Sourcecontrol

Recently, I started working on a project that uses TFS, which I previously have not worked with before. After using it for a few weeks, we had to branch and that’s when it gets interesting. TFS uses location based branching. The branch is an actual new location in the source control. Not knowing this, we created a directory structure like this:

MyProject/MyClient
MyProject/MyServer

Ideally, the client and solution should be both grouped under a single folder so that we can just branch the folder and get something like the following

MyProject/Main/MyClient
MyProject/Main/MyServer
MyProject/Cycle1/MyClient
MyProject/Cycle1/MyServer
MyProject/Cycle2/MyClient
MyProject/Cycle2/MyServer

What I want to do is to move the client and server solution to Main, so I can branch from Main. I attempted to go to the MyProject, right-click on the right  panel in Source Control Explorer and select New Folder, but it was grayed out even though I have admin permission.

Solution

I had previously created the MyClient and MyServer project by adding the solution to TFS. As a result, I ended up with a workspace mapping from MyProject/MyClient and MyProject/MyServer. In order to create the new folders in MyProject, I need to add a folder to MyProject.

Unless you map a TFS folder to a physical location on your drive in the workspace, you canot add a folder in that directory. It’s actually fairly obvious in hind site, but it’s not immediately obvious the first time.

August 25, 2008 at 9:02 am 1 comment


Calendar

July 2017
M T W T F S S
« Jun    
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Posts by Month

Posts by Category