Visual Studio TFS workspace and solution explorer - visual-studio

I have a problem with my team foundation server whenever I change something in the project and then check it in other visual studio can't see the changes when they get latest version of the file or entire project but the change is available in the Source Control Explorer but not in the solution explorer.
I use Team Foundation Server 2013 and Visual Studio 2013 Ultimate.

If the file exists on disk (physically in the folder) but does not show in the solution then it is likely that the file was checked in, but the modification to the solution was not.
On the solution explorer there is a "show all files" button at the top of the page. If you click it you should see the file grayed out. Right click on it and add it to the solution with the "include in project". Now check in the change to the project file.
Everyone will now see it added.
You need to find who is adding files and not checking in the solution. I find a rolled up newspaper is most suitable to rectifying the issue permanently.

Related

No TFS-connection in Visual Studio Solution Explorer

Our project is on Visual Studio Team Services (was TFS Online) and we are using visual studio 2013, but I dont seem to have any connection from Solution Explorer to Team Services.
I have no problem opening Team Explorer-> Source Control Explorer and Get Latest, but when I open the .sln file in visual studio, it seems disconnected to Team Services in the sense that I cant find menu items like "Get Latest", "Check out" and so on. When I create new items in VS they aren't added to Team Services, I have to add them by using Source Control Explorer.
My mappings seems fine, they point to the folders where I have my source code locally.
So, how to I connect my VS to Visual Studio Team Services?
Under Source Control Explorer in VS, double click the .sln file, then go to Solution Explorer to check whether the files under the solution is source controlled.
Additionally, you can go to File--Source Control to see whether you can see "Get latest version" or "Check Out for Edit".
Open the File - Source Control - Manage Source Control and click Bind for each project in the solution.
Also make sure that Team Foundation Server is selected as the version control tools in Tools - Options - Source Control.

Having Issue Binding Team Foundation Server Project in Visual Studio

So I connected to a project via myproject.visualstudio.com, I then clicked "Soure Control Explorer":
Then I clicked "Get Latest Version":
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:
Which I click and then see error:
After reaching this error on the internet I go to File -> Source Control -> Advanced -> Change Source Control to rebind:
And I see:
In this screenshot I clicked Bind for the sln. But it makes checkout to bind to the server:
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.
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.

Visual Studio 2012 project lost link to TFS

So I came back to a project that I was working on a few months ago, and when I load it one of the projects seems to have lost the link to it's entry in TFS. The solution explorer doesn't show the lock icons for it, but I still see it in TFS.
I tried performing a add to source control but it says that the items already exist.
Anybody have ideas on how to fix this?
I'm trying to avoid remapping because there are a few branches, and I'm not even sure that will fix it.
Your solution has lost the TFS binding, you can do the following to fix it. First open the solution/project you wish to bind in Visual studio then:
Highlight the project or solution you wish to bind to Team Foundation version control in Solution Explorer.
On the File menu, click Source Control, and then click Change Source Control.
3.In Change Source Control dialog box, click Bind.
MSDN Link
Update for VS 2013 (thank you Caad9) - In VS 2013 [Ultimate at least] there's an additional level in the menu; File - Source Control - Advanced - Change Source Control... which brings up the dialog

.csproj file is missing while checkin the pending changes in TFS

I am working in Visual Studio 2010 with Team Foundation Server 2010. Everything was fine with the check in and check out. Now I am stuck with a problem. The problem is .csproj file is missing while showing the pending changes. Because of this when I check in any .cs file it is not updated in server. Can anyone say me in what way I am going wrong?
The first thing you should do is install TFS power tools. My suspicion from what you've said is that the csproj file is not under source control, and the easiest way to get it in is via power tools.
In order to validate that this is the case, open the source control explorer and look in your repository for the csproj file. My guess is that you won't find it. If you don't then navigate to it in explorer, right click and select add to source control.
(You can do this without power tools, just select add files and navigate to it)
I had the same problem and then found the .csproj under "Excluded changes" via the "Detected xx add(s)" link. I could "promote" it so it got visible in the "Included changes".

How to add TFS bindings to a Visual Studio 2010 project?

There's a question already discussing how to add project/solution bindings to TFS, however it seems to only apply to Visual Studio 2008 (I am unable to find the "Change Source Control" dialog in VS2010).
I have a solution and source code on my local machine already in TFS, however it does not have TFS bindings (the thing that produces the padlock icon in the Visual Studio Solution Explorer and allows automatic checkout).
How can I add bindings to an existing TFS project using Visual Studio 2010?
In VS2010 check Tools>Options>Source Control and see if set to TFS. If not that might be why you don't see File->Source Control->Change Source Control.
I ran into this problem and, for me, the issue was that my solution was offline with respect to TFS. Upon trying to change source control, I received a message stating that it is already associated with source control but is offline. I placed the solution on-line, per my recollection, using the File->Source Control->Go Online menu option and this seemed to fix the problem.
Go to the source control explorer under Team Explorer, where you can see your repository. Right click on the top folder that maps to the folder on your local machine. There's an option called "Map to local folder". Map this to the folder on your local machine. This will set up all the bindings for TFS for your project.
I had the same problem and the following steps solved it for me in VS 2008.
Unfortunately, I didn't record the exact steps and don't want to add a new project to our TFS to try again, so the steps are from memory.
Go to File Menu -> Source Control -> Open from source control
Select solution file from TFS hierarchy
Accept any warning about project already being on local disc
A popup dialog comes up saying something along the lines "This solution is already under source control, but no bindings exist. Do you want to add them?"
A selector shows all projects in a grid and allows adding the required bindings. Add TFS server setting to each project (select all lines in grid at once and press a button at the top. I can't remember what it was called, but it was fairly obvious).

Resources