0
votes

So I connected to a project via myproject.visualstudio.com, I then clicked "Soure Control Explorer": enter image description here

Then I clicked "Get Latest Version":

enter image description here

This download the source code and correctly mapped a local directory for me. But my project is not under source control in the solution explorer, if I right click on the solution I see: enter image description here

Which I click and then see error: enter image description here

After reaching this error on the internet I go to File -> Source Control -> Advanced -> Change Source Control to rebind:

enter image description here

And I see: enter image description here

In this screenshot I clicked Bind for the sln. But it makes checkout to bind to the server: enter image description here

I just want Visual Studio integrated solution explorer Get Latest and Checkin functions, I got latest from TFS and do not understand what the big deal is with getting Visual Studio 2012 to understand.

1
That looks right so far, can you just carry on with Binding all the Project Files and the Solution, the "Check out" on bind is normal. - DaveShaw
I can but I don't want to checkout anything, normally I just connect to aproject.visualstudio.com and viola I have integrated TFS menu items when right clicking the sln or a project or a file. I can get latest or commit changes if I have any, if I continue, I feel like I am checkiing out all files in the project which I do not want to do. I just want a working version and want to track diff with repository and commit stable diffs. - Brian Ogden
TFVC needs "Bindings" in the CSProj and SLN files. This is usually 4 Elements in each the CSProj and a new GlobalSection in the SLN file. Without the SLN at least, VS won't play. I have no idea why, it shouldn't be needed with Local workspaces. - DaveShaw
Ya the guy that setup this project in TFS is too smart for his own good, he initially had this cmd files you would run to diffs with the repository that would open up Winmerge. He then gave me a TFS online account because I was like, come on dude let's keep this aspect simple. - Brian Ogden
Perhaps it will only check out the CSProj and SLN files if I continue, I just would had for this to kick of a process of checking out every single file. - Brian Ogden

1 Answers

1
votes

So far you are on the right track. If you continue and Check-Out the SLN file it will add the bindings to the SLN and csproj files. These are some extra properties in the csproj file and a new GlobalSection in the SLN file. With these Visual Studio will be fully aware of TFS and provide status icons in File Explorer and all the other goodness.