We have several of our projects at my company in source control using Visual Studio Team Services (visualstudio.com). For the life of me I can't figure out how to get the workspace on my machine to flip to a Server workspace type. We don't want multiple checkouts and we want to get latest when we edit a file, and server workspaces (as I understand it) are the only way to accomplish this. Is it even possible to use server workspaces with the "cloud" version of TFS/Visual Studio Team Services?
Thanks!
Connect to your server with Visual Studio
Go to Team Explorer
Go to Settings
This part can be a little tricky so I attach a screen shot:
Under "Team Project Collection" go to Source Control
On the new dialog go to the second tab - Workspace Settings
So as you can see it is pretty obscure and I believe it is on purpose. By default the workspaces are of type "local" and these have their benefits. You may want to check out this article to make an informed decision: http://msdn.microsoft.com/en-us/library/bb892960.aspx
Related
I have TFS Power Tools 2012 installed on my PC.
I recently uncloaked a project in TFS and performed a get operation to bring the project folder into my private workspace (using server-side for backwards compatability with VS2010).
Whilst in Visual Studio, there is no problem - I can check it out and check back in.
However, Power Tools does not recognise the new folder in windows explorer. In other words, all other projects have the green-arrow icon overlay, but this one doesn't. Right-clicking on the folder also does not bring up the TFS context menu.
Does anyone know what I may have neglected to do? I have tried deleting the folder and doing a "Get specific..." to bring it back in. Hell, I've even done a repair on TFS Power Tools and restarted; the behaviour remains unchanged.
This is not my problem (the rest of my projects do show the icon overlay)...
Possible duplicate here maybe...
I have noticed Power Tools sometimes has conflicts with icon overlays, particularly when they compete with others (like SVN).
It can also conflict when you have multiple workspaces on your PC. As you mentioned, make sure the project is uncloaked in both workspaces.
I'm using Team Foundation Services to manage two different solutions. They're both in DefaultCollection. If I open up Solution A in visual studio and make a change, Solution B shows this pending change in Team Explorer. Is this intended behavior? Can I change this so that the instance of VS with Solution B doesn't see anything from Solution A? It's concerning because I'm worried that files from SA are getting added to SB.
Welcome to the world of TFS Workspaces. The files in Solution A are not actually being added to Solution B but in Visual Studio what you are seeing is a list of all the files that are currently checked out in that TFS Workspace on your machine. This behaviour is by design (and actually can be very helpful if you happen to edit some files outside of Visual Studio).
Jesse has an excellent write up on how to separate out these things if you want to. Basically you can define a separate TFS workspace for each solution.
<shameless_plug>For more information on TFS workspaces you might also want to check out the Professional Team Foundation Server 2012 book.</shameless_plug>
I'm trying to set up the siren of shame build monitor, but for some reason can't connect to my TFS.
TFS itself is running on port 8080, and TFSBuild on 9192 - but putting http://build-server:8080 or trying other ports does not work...
(Update 1) I've downloaded the source, and also looked using Wireshark into what is happening when it tries to authenticate. I'm confused, as the code is using standard .net Libraries for TFS - Microsoft.TeamFoundation.dll (v2.0.50727). It seems to be looking for web services that do not exist if I look in IIS on the server - namely POST /TeamFoundation/Administration/v3.0/LocationService.asmx
Is it the case that this is not compatible with TFS 2008 at all, and only TFS 2010 will work?
I downloaded the "Siren of Shame" to have a look.
To connect you need to enter the URL for TFS in the following format
http://tfs-Application-Server:8080/tfs
Note that it attaches to the TFS server not the build server (or build controller).
However having connected to TFS it looks like a pain to configure. It correctly detected all of the Team Project Collections that I have in TFS but when I selected one of the collections it wasn't showing any running builds. So I tried selecting a single Team Project, once again no builds were displayed. Finally I selected a build that I knew was running, only then did it show up in Siren of Shame.
I have thousands of builds and I don't want to have to select each one individually to be able to monitor it. At the very least I want to be able to select a team project and monitor all of the builds in that project with one click
There are a number of alternatives out there. But none of them are great
http://teambuildscreen.codeplex.com/
http://buildmonitor.codeplex.com/
http://tfsbuildinspector.codeplex.com/
We're a small shop and have legacy VB6, Classic .ASP, .NET 1.2 - 3.51. We installed the product successfully, but since depending on the code which needs changing we fire up the respective IDE Visual Studio x. How do we go from no source control to TFS?
You will probably want to look at the TFS 2008 Power Tools. One of the features that is available in the Power Tools is Windows Explorer integration, so you can get/checkout/checkin by right clicking the file(s).
Your other choices are to use the VS2008 / TFS 2008 client to do your SCM operations (which means you need to switch between multiple IDEs), or you could use the TF.EXE command line to do your SCM operations.
If I misread your question and you're asking how do you get your legacy code into TFS, you'll need to go into the TFS 2008 client and do the following:
Map a workspace to a folder on your hard drive (or network).
Copy your source to the folder.
In TFS 2008, click on the "Add Files" button.
Select the folder you just copied everything into.
Add them.
Check in.
I don't know what I've done, but on my TFS source control explorer I have "No commands available" on the context menu! (Panic is setting in)
From the Team Explorer I can see that am a member of Team Foundation Administrators, and I'm a member of the team project administrators as well.
What would be causing TFS to give "no commands available" on the pop-up context menu?
Additional info:
I can get to the source control explorer and with additional commands from another machine, so perhaps it's something pooched on my setup (although it was working an hour ago!)
In Visual Studio, go to Tools > Options...
Click "Source Control" in the tree
Select "Visual Studio Team Foundation Server" as the current source control plug-in.
If this option is not available, ensure that you have Team Foundation Client installed.
You need to checkout (Mapping is not enough for Moving and Renaming - for that you MUST check-out) those files/folders to your local disk, before you get the context menu on right-click that you miss.
I had same problem and from the MSDN official page I was not too much wiser :)
Anyway, I wonder what is the good reason, for which you can not move files in TFS server repository without checking-out those items to my disk. In SVN this is no problem. (And there is even no path mapping in SVN - just CheckOut :)