Background
I created a new project with Microsoft's Team Foundation Service (tfs.visualstudio.com). I added code (Orchard CMS) which includes the solution file and performed initial check-in. To make sure nothing was missed, I removed mappings and deleted my local. Then got latest and reestablished mappings. I opened the solution, built it and set up a local site. Everything worked fine.
Issue
Whenever I open/load the solution, I noticed that I don't have the usual TFS options like get latest, check-out and check-in and source control options. Then I noticed an add to source control option (see below)
Whenever I click on it, I get told that the 'item 'Orchard.sln' is already under source control'
Without source control, I don't have the options and I can't track which files have been updated or not, and the locks as well. Can anyone help please?
All the source control settings are in the SLN file.
Open it up with notepad, and remove the following GlobalSection
(there can be more than one sometimes):
GlobalSection(TeamFoundationVersionControl) = preSolution
...Stuff...
EndGlobalSection
Now re-bind the solution and project using the: File, Source Control, Advanced, Change Source Control... option.
This should setup the binding correctly. If you check in these changes to SLN, vspcc, csproj files it will stay.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With