'TFS source control - new files not automatically detected as pending changes
As per the tags, I'm using VS2013 and TFS2013.
There are multiple projects in the solution: Model, Presenter, View, etc. All other projects are working as expected in terms of source control operations.
Problems with the Model project:
- Adding a new file via Solution Explorer isn't automatically detected as a pending change
- Deleting a file isn't detected either
Other source control operations work fine for the Model project, such as:
- Get latest version
- Edit detection for existing files (including changes to the csproj file when a new file is added)
- Checking in pending changes
The csproj file would show up in pending changes with the newly added file listed in it, but the new file itself isn't showing up, therefore causing build errors on other developers' machines if only the csproj changes are checked in.
The workaround is to find the added file in solution explorer and Add via context menu, this will make it appear as a pending change. But this process should be automatic as per the other projects.
Noticed that there is no .vspscc file for the Model project while other projects have one each.
Any help appreciated. Thanks.
Solution 1:[1]
Before unbinding and binding your solution try his:
- Go to Source Control Explorer
- Click the "Add Items to Folder" (the one on the left of the red cross)
- Select the items you want to Add and follow the instructions on screen
That's all
Solution 2:[2]
Click <Detected: x add(s), x delete(s)> : in the source control explorer then select the file to add
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Michael Gurion |

