1
votes

I am trying to use TFS storing non-VisualStudio source code. Working with Visual Studio 2012 and Microsoft's online Team Foundation Service.

I've setup a TeamProject and mapped its root to a local folder. All it contains at the moment is a BuildProcessTemplates folder in it. (which was created as part of the TeamProject)

I copied my source code externally (using windows explorer) into the TeamProject root folder on my hard drive and since my TFS workspace is NOT a server workspace but rather a local workspace, I was expecting VS to detect the folders/files and show them in Pending Changes window .... yet it doesn't.

Interestingly, new files in the root folder are detected as "Excluded Changes" but new folders are not detected.

What am I missing?

2
are there files in these new folders? - Betty
@betty: yes there are files and subfolders in there. - e-mre

2 Answers

1
votes

First make sure the newly added folders contains files.

Are there any Detected changes shown in the Excluded Changes section? Detected changes

Pending Changes > Detected changes link > The Promote Candidate Changes dialog box appears > check the files you want and click Promote.

0
votes

I can't say I have ever noticed nor expected TFS to automatically pick up files or folders added to a mapped directory as pending changes.

I always just add them manually using the 'Add existing items' option from the source control view.

It may actually do (or at least be meant to do) the auto-detection, but I can't say I've ever relied on it. I don't think it's something to fret too much about - adding them manually is easy enough, and the 'Add existing items' option is usually smart enough to show you which files are not already under source control, so even if you need to add even more files later, it shouldn't be too much extra effort.