Reputation: 59
I'm using Visual Studio 2015 update 3 with TFS hosted at visualstudio.com. I added a new controller (xyzController) in WebAPI project. I was about to commit the solution but I found out that the new controller was not detected in changes but my edit on the existing controller (abcController) was detected.
I tried adding files to different folder and they are also not detected. I also checked the icon beside the file, which is "lock" icon and the tooltip says that it was already "checked in". (which causes more confusion on my side)
My research on the internet (for a day) made me do these things:
None of them fixed my problem.
This is somewhat the same question but the problem and solution is kinda different, but you can also check it.
Upvotes: 0
Views: 589
Reputation: 59
After several digging of different files in the solution. I found .gitignore file on the solution folder. Inside, the path "/Sol/Sol.WebAPI" was declared. Causing any files to be ignored in that path.
Removing that path in .gitignore file causes the xyzController to be detected again as a change, newly added file. I just didn't thought VS also consider .gitignore files since I thought they had their own version of it which is the .tfignore file.
Probably the reason why the edit on the existing file (abcController) was still detected is because the file (abcController) was already added and committed on the server before they added the .gitignore file causing it to actually "bypass the ignore parameter".
Upvotes: 1