How to check file is cheched out by whom? - visual-studio-2010

How to check file is checked out by whom? I'm using Team Explorer in Visual Studio 2010

In source control explorer, find the file you're interested in, right click and go to properties. In there you will see a status tab that shows you where the file is checked out to (user & workspace) and any pending actions on the file.

See this images Notes : its related to vs 2008
step1:
step 2 :

Use View -> Other Windows -> Source Control Explorer
or
Use an 3rd party tool like TFS Sidekicks (http://www.attrice.info/cm/tfs/)

Related

how to see the location of a file in visual studio solution explorer

I can look for file with ctrl + , and get what i want
I can also right click the file tab and show the file in windows explorer
but the action above wont tell me where it is in the tree.
How can i see where the file lies inside the tree view in solution explorer?
You need Sync with Active Document.
In Visual Studio 2015, check
If you are using older version of VS and don't have that button, you need to check Tools -> Options -> Project and Solution -> Track Active Item in Solution Explorer.

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.

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).

How can I update the outdated Team Foundation Server file status icon in Visual Studio 2010?

In visual studio 2010, under solution explorer the source control icons by the files denote that the file is currently checked out. However if I look at the file in the source control explorer it appears not to be checked out. I have tried the "refresh" button in solution explorer as well as "get latest version...". Neither update the status icon by the file. Thanks in advance.
Try the 'Refresh Status' command available on the File > Source Control menu. This command is also available on the 'Source Control - Team Foundation' toolbar if you have it showing.
Is it possible that the file is checked out under another workspace? If the Source Control Explorer (SCE), look in the "User" column for one of the files that appear checked out. Does a user name (with a workspace name in parenthese) appear? If so, then that user has the file checked out within the workspace listed.
In Visual Studio 2008 there was an issue with shelvesets: http://blogs.infosupport.com/blogs/marcelv/archive/2007/12/03/Team-Foundation-Server-2008-shows-incorrect-version-control-status-in-team-explorer-.aspx
Could this be the case for you too?

VS 2008 and Team Explorer- checked out files

how to search for files checked out by other users in vs 2008 Team Explorer. I can search for all the files checked out in a project in Visual Source Safe by doing a search, Is there a similar functionality implemented in team explorer? Right now I have to click on every folder and see if files from that folder are checked out by any one else or not.
Thanks
Add this command into the "External Tools..." list of VS.
Tools >> External Tools…
Select “Add” and enter the following:
Title: “View all checked-out files”
Command: “tf.exe”
Arguments: “status $(ProjectDir) /user:* /recursive “
Check “Use Output window”
Un-check “Prompt for arguments”
Select “OK”.
Get the TFS Power Tools - they integrate into the Team Explorer view. You'll get a list of people on the team. You can right click the team members and see their current changesets.
You can check out the TFS Power Tools on the Microsoft site here - the October 2008 edition has the Team Members functionality.
The Attrice TFS Sidekicks can be used to get some info not displayed in VS. I believe the Status view will display what you are after: http://www.attrice.info/cm/tfs
Installing the (free) Team Foundation Server Power Tools from Microsoft adds a number of extra features to Source Control Explorer including the ability to right click on a folder and choose "Find In Source Control".
You can download Team Foundation Server Power Tools from here: http://msdn.microsoft.com/en-us/teamsystem/bb980963.aspx.
You can run TF.exe status command statement to get list of files checked out under specific project. you can also search based on user name..
here is the link for more information.
http://patelshailesh.com/index.php/how-to-get-the-list-of-currently-checked-out-files-in-tfs
Hope this helps
As far as I know it's not possible from Team Explorer.
You can do it from command line using TF STATUS command.

Resources