0

I'm making an angular webapp for a C# solution and I have to use TFS.

I set my workspace as local (as described here) and added the angular folder from Source Control Explorer.

Now all existing files are marked with the [add] tag and I can check-in them, but I can't understand why added or removed files are not detected as pending changes.

What am I missing?

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
Doc
  • 5,078
  • 6
  • 52
  • 88

2 Answers2

1

They're under "Excluded" changes. You'll see a marker that says "Detected: X adds" or "Y removes". You can click it to promote them to tracked changes. It assumes that stuff that's being added or removed outside of Visual Studio isn't intended to be in source control, so it doesn't start tracking until you tell it that you want them to be tracked.

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
0

This may not be the perfect solution you're looking for, but I ran into an almost identical issue. This is how I solved it,

1) Open Solution Explorer in Visual Studio

2) Find your Project ( Angular Project )

3) Right click on it, and click Compare changes.

4) In compare options see View Options and check the following:

  • Show items that exist only in source path
  • Show items that exist only in target path
  • Show items that are different

5) Then find all the files that are in your local mapping that are missing from your server version, right click on them and click "Add file". You should be able to do this for entire folders / groups of files using shift + click .

6) Once you've added all your missing files, make sure they're being tracked in Team Explorer -> Pending changes, then check in your files.

I haven't figured out how to get Visual Studio to track these files automatically as I believe it requires a solution file like in normal C# projects to track them, but I could be wrong.

Ares
  • 411
  • 8
  • 15