i got a clue from here: Using TF.exe with Team Foundation Service?
And changed my server Url to: https://abc.visualstudio.com/DefaultCollection. and it worked!!
Question
I am setting up TeamCity continuous integration. While creating VCS Root, I am getting the error:
Test connection failed in ProjectBuilder :: BuildConfiguration. TF31002: Unable to connect to this Team Foundation Server: https://abc.visualstudio.com/tfs/DefaultCollection/Components.
Please also let me know what should be the VCS root :URL and root under TFS settings in Team City. Should it be pointed to .sln file?
Solution
i got a clue from here: Using TF.exe with Team Foundation Service?
And changed my server Url to: https://abc.visualstudio.com/DefaultCollection. and it worked!!