How do I browse the TFS repository in VS2012?
I've been through all the Team Explorer window options and can't find the one that open the window to browse all the folders/projects in the TFS repository.
(1) To browse the version control folders, select Menu View, Other Windows and then Source Control Explorer.
(2) To browse all team projects and teams within the connected Team Project Collection, select Projects and My Teams in Team Explorer.
(3) To include deleted folders and files for version control using Source Control Explorer, select Tools, Source Control, and ensure the Show deleted items in Source Control Explorer checkbox is selected under the Visual Studio Team Foundation Server node.
From the Team Explorer, select the "Home" button in the toolbar (or choose "Home" from the context menu), then choose "Source Control Explorer".
I know where it is, but I can't remember the exact menu options. :(
But you connect to a TFS box, then you choose the projects (TFS projects not code projects) you are interested in. Given you have access, they'll then appear as top level items in the team explorer window.
I think it's Connect / Open From Source Control?? option under source control in the File menu.
Related
I'm using Visual Studio 2015 and have deleted a branch from our TFS source control. Looking at other guides there's mention of being able to recover the branch by opening Source Control Explorer, right-click and select 'Undelete' or 'Rollback'. These options are not available
I have not got this branch mapped on any workspace. Clicking on 'Undo Pending Changes...' brings up a message saying there are no pending changes. How can I restore a branch on TFS? Is there a way I can enable Undelete or Rollback?
First, please make sure you or your teammates haven't destroyed this branch (After doing this, there is no way to recover it in TFS server).
If you delete this branch in Visual Studio,
To restore an item deleted from the server
From the menu bar choose Tools, Options.
On the Options dialog box, navigate to Source Control, Visual
Studio Team Foundation Server.
Select Show deleted items in the Source Control Explorer, and then
choose OK.
From the menu bar choose View, Other Windows, Source Control
Explorer.
In Source Control Explorer, navigate to the folder that contains the
item you want to restore.
Open the item’s context menu (select the item and right-click it) and
then choose Undelete.
If you delete this branch from your dev machine outside of Visual Studio,
Please check the solution from MSDN link Delete or restore files and folders
Morever, you can also try to use the undelete command restores items that were previously deleted. For Example:
tf undelete [/noget] [/lock:(none|checkin|checkout)]
[/recursive] itemspec[;deletionID] [/login:username,[password]]
Update:
Note: To be able to undelete a branch you must first map the parent folder/branch to your workspace. Now, the undelete option will be enable.
According to the screenshot, there is no workspace configured for it. Try configuring a work space for the project that include the deleted branch to see if the "Undelete" option will be activated.
In Visual Studio go to [Tools->Options] then Select [Source Control->visual Studio Team Founation Server] and check the [Show deleted items in the Source Control explorer].
After that, you can then right click a folder and say "Undelete"
I have TFS 2010 and Visual Studio 2010 Ultimate and the April TFS 2010 Power Tools installed. I am a Project Collection Administrator on my TFS Server (so permissions should not be an issue).
I want to open the alerts explorer, but when I right click on a project tab it is not there:
Just in case I tried upgrading to the March version of the TFS 2010 Power Tools. There was no change.
Opening the "Project Alerts" just gets me the normal Alerts dialog. I need to make a new alert.
Any ideas how I can get the missing menu item back?
Edit: I tried manually adding the menu item to the context menu. But I cannot find Alerts Explorer in any of the command lists.
It seems Alerts Explorer is no longer available in Team Project menu.
To create an Alert, you can open Alerts Explorer in following ways:
From the Team menu in Visual Studio, click Alerts Explorer.
From the Team Explorer window, right-click the server\team project collection and then click Alerts Explorer.
For Work Items, you can Right Click a Work Item and choose 'Alert on change..'.
For Source Control, Right Click Source Control Items and choose 'Alert on Change..'.
We had to install the Team Foundation Server Power Tools from December 2011 at http://visualstudiogallery.msdn.microsoft.com/c255a1e4-04ba-4f68-8f4e-cd473d6b971f
hey guys,
i am using TFS 2010, i have uploaded content on TFS server, but i dont have any clue about how to download the content from TFS server to local system so that i can check out and check in once i have done editing
Any one know how to do that.. please reply...
i need a step for the same.
Thanks and Regards
Abbas Electricwala
You need to setup a local Workspace (if there isn't one already) and then map your project to a local working directory. From Step 1 of this MSDN article:
You can create a workspace mapping in one of two ways:
* Set the workspace mapping explicitly
* Perform a Get operation on your team project.
To set a workspace mapping explicitly
In Visual Studio, on the File menu, point to Source Control and then
click Workspaces.
In the Manage Workspaces dialog box, select your computer name and
then click Edit.
In the Edit Workspace dialog box, in the Working folders list,
click Click here to enter a new
working folder.
Click the ellipsis (…) button, select your team project (for example
MyTeamProject1), and then click OK.
Click the local folder cell to display another ellipsis button.
Click the ellipsis button beneath Local Folder and then browse
to and select the local folder on your
development computer where you want to
locate your team project; for example,
C:\DevProjects\MyTeamProject1.
Click OK twice to close the Edit Workspace dialog box.
Click OK in response to the Microsoft Visual Studio message box
that informs you than one or more
working folders have changed.
Click Close to close the Manage Workspaces dialog box.
To perform a Get operation on your
team project
In Team Explorer, expand your team project node; for example,
MyTeamProject1.
Double-click Source Control beneath your team project.
In Source Control Explorer, right-click the root folder
MyTeamProject1 and then click Get
Latest Version.
In the Browse For Folder dialog box, select your local path (for
example,
C:\DevProjects\MyTeamProject1) and
then click OK. This maps the team
project root folder within TFS to a
local path on your computer.
I'm able to view the project
1.from the Source Control Explorer but not in Team explorer,Only if i have open the local project which is binded to TFS Only then i can view the other folders within in TFS Project.
2.From Tfs command Line Utility
3.Suppose there are no workspaces and no projects downloaded from TFS then only way to view the project is from the command line Utility.
Is there any way fix this issue.
Right click on the root in the team explorer pane, and select "Add existing team project". You should be able to select the new project from there.
It sounds like a permissions issue. I'm guessing you don't have permissions set up on the Team Project, but you do have read permissions on the source control. Keep in mind that, though the two are related, they are stored and maintained separately in the back-end.
As the resident TFS admin, on occasion I am asked to undo a checkout (usually a lock) that a user has on a certain file. This can be done via the command line using the TF.exe utility's Undo command (see http://msdn.microsoft.com/en-us/library/c72skhw4.aspx), but that's kind of a pain.
Is there a way to undo another user's checkout via the GUI?
Out of the box, no, but there are at least a couple of options via add-ons.
TFS Power Tools
TFS Power Tools (Visual Studio 2010)
TFS Power Tools (Visual Studio 2012)
TFS Power Tools (Visual Studio 2013)
TFS Power Tools (Visual Studio 2015)
Once installed:
Open Source Control Explorer
Right-click the item on which checkout is to be undone (or a parent folder of multiple files to be undone)
Select Find in Source Control and then Status
In the Find in Source Control dialog, leave the Status checkbox marked
Optionally, enter a value for the Wildcard textbox
Optionally, enter a username in the "Display files checked out to:" textbox and select that radio button
Click Find
This will result in a list of files
Select the items to undo
Right-click and select Undo
Click Yes when prompted with "Undo all selected changes?"
Team Foundation Sidekicks
Another option is to use the Team Foundation Sidekicks application, which can be obtained here: http://www.attrice.info/cm/tfs/
It has a Status sidekick that allows you to query for checked out work items. Once a work item is selected, there are "Undo pending change" and "Undo lock" buttons that can be used.
Rights
Keep in mind that you will need the appropriate rights. The permissions are called "Undo other users' changes" and "Unlock other users' changes". These permissions can be viewed by:
Right-clicking the desired project, folder, or file in Source Control Explorer
Select Properties
Select the Security tab
Select the appropriate user or group in the Users and Groups section at the top
View the "Permissions for [user/group]:" section at the bottom
I just had this problem myself and found an easier way to clean up old workspaces.
1) In visual studio, open source control explorer.
2) From the 'Workspace' dropdown select 'Workspaces...'
3) A dialog will appear showing the workspaces on your current PC. Select 'Show remote workspaces'
4) You will now also see workspaces from your previous PC (as long as they are from the same user account). Select the old workspace(s) and click 'Remove'. This should delete the old workspace from from TFS along with any persisting checkouts.
I'm sure Arne has found a solution but I hope this helps others who google the issue.
Command line
tf undo /workspace: OtherUserWorkspace;OtherUser $/TeamProject/MyFile.cs /s:http://YourTFSServer:8080
https://msdn.microsoft.com/en-us/library/cc470668.aspx
if you use the tfs power tools undo procedure above you need to do a get or get latest to update your screen. Otherwise it looks like undo has not worked.
The operation completed successfully. Because the workspace Workspace;domain\userID is not on this computer, you must perform a separate get operation in that workspace to update it with the changes that have been made on the server.