For Cruise Control, I have CCTray that sits in my taskbar and lets me know if builds are happening or builds are breaking.
Does TFS have anything like this?
Or Start -> All Programs -> Visual Studio 2010 -> Team Foundation Server Tools -> Build Notifications
Personally, I find the Build Notifications app to be pretty terrible. It is slow for one. I find it better to just create email alerts whenever anything happens with a build. They are much more real time.
Edit: I just noticed you use TFS 2008. I don't have it installed to check but it should be roughly in the same location.
Edit 2: I realized the tool comes with TFS Power Tools. Find it here:
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=15836
UPDATE 2017-06-21: CatLight no longer has a free edition, unless used with an open source project. Details: https://catlight.io/editions
Visual Studio has an included application called "Build Notifications". This tool allows a (close-to) real-time status to be displayed of the current build status across one or more builds on the TFS Server. However it only works with XAML based builds, which are deprecated in favour of vNext builds.
There's a 3rd-party tool that does Build Status, notifications, bug monitoring and more for TFS (both XAML and vNext builds) and other systems (such as Jenkins). It's called CatLight and there's a free version that works with up to 10 builds - https://catlight.io/editions.
It is configured in a similar manner to CCTray, and is very easy to use.
Here are some screen-shots:
AnyStatus is another tool that supports multiple CI platforms, including Visual Studio vNext. It comes as a Visual Studio plug-in, and also as a Windows program (with tray icon and notifications).
More details here: https://stackoverflow.com/a/48291894/3063884
You can find Notification application here
"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\BuildNotification.exe"
Related
Let's say there is 2 members working on the project right now at the same time,
is there any functionality to check in real time who is working on which file?
Generally you can see who worked on which files from the History (Changeset for TFVC, Commit for Git).
For real-time checking, if you are using Git, as far as I know there isn't a way to see the information as it's distributed, you can only check the status from the local repository. Please see Choosing the right version control for your project for details.
If you are using TFVC 'server workspace', you can check the information from Source Control Explorer.
Alternately you can use the tool called Team Foundation Sidekicks which is a suite of tools (includes Code Review Sidekick, Shelveset Sidekick, Labels Sidekick, History Sidekick, Workspace Sidekick and Status) for TFS administrators and advanced users providing rich GUI for administrative and advanced version control tasks, you can use it to check and track the things you required.
Unfortunately it's no available for VS 2017, the latest version 6.0 only works for VS 2015.
I am trying to evaluate VS Code instead of VS professional version for my work.
Can I use VS code with TFS for daily operations like?
Create work space?
Get latest source code?
Code checkin?
Shelve set?
Code review request ?
etc?
As jessehouwing mentioned most of that are supporeted except for the Code Review bits.
You need to install Visual Studio Team Services Extension for Visual Studio Code
The following are the current features supported by the extension:
Execute all basic version control actions such as add, delete, rename, move, etc.
View local changes and history for your files
Include and Exclude changes (and move files between the two states)
Merge conflicts from updates
Check-in and update local files
Associate work items to check-ins
Provides an integrated TFVC Output window
Support for a TFS proxy
Supports workspaces created with Visual Studio (via tf.exe) or the JetBrains IDEs and Eclipse (via the Team Explorer Everywhere Command
Line Client)
To start using the TFVC features, review the documentation and
check out the TFVC Source Code Control for Visual Studio Code
video which shows you how to configure and use the TFVC features.
The extension supports TFVC across Windows, macOS and Linux (with
separate configuration instructions for macOS and Linux; see
video).
If you’ve never used the extension before, we also have a
walkthrough to get you started.
Source here : Official Release of TFVC Support for Visual Studio Code
I am using the TeamCity plugin for Visual Studio 2015, and the Local Changes window is great for submitting private builds, easily assigning a check-in to a TFS task etc.
However, as my company is currently using TFS source control, the unified diff pane does not work ('Unified Diff is not supported by TFS integration'), so I would like to easily diff each file by double-clicking it rather than having to right-click each one and select 'Diff against workspace'.
Does anyone know how/if this can be achieved?
Thanks!
Unfortunately, this can't be achieved. There is no such related settings with TeamCity Visual Studio plugin. You can try to use external diff viewer such as beyond compare, more details please refer Teamcity - which external diff viewer
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/
I want to get the build status in TFS (whether it is succeeded or failed). Which classes and methods can be used for this purpose?
You can run Build Notifications, which is similar to CC Tray in that it will continually give you the status of all builds that you're interested in following. To launch the tool, go to...
All Programs-->Microsoft Visual Studio 2010-->Team Foundation Server Tools-->Build Notifications
Click on the Options button to subscribe to whichever builds are on your server. This will now show up in your system tray with a green check box or red X to indicate the status of the builds you've selected.
In Visual Studio 2013 with TFS 2013, you have email alerts from TFS and a Build Notification system tray tool: http://msdn.microsoft.com/en-us/library/ms181725.aspx
However, it usually doesn't show up in the Windows 8 Start screen, even with a search. So, run it manually in most installations from here:
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\BuildNotificationApp.exe
The TFS API is mostly documented on MSDN under the Visual Studio SDK: http://msdn.microsoft.com/library/bb130146, however the build APIs are in a different location (in the TFS documentation): http://msdn.microsoft.com/library/cc339575.
These are the same assemblies that tf.exe and Team Explorer (etc.) use.
If you just want the alert (not programmatically): You can right-click on the project in the Team Explorer and select Project Alerts.
You can use AnyStatus to monitor both XAML and vNext builds and lots of other monitors such as Windows Services, HTTP, TCP/IP, Ping, GitHub, Other CI/CD tools, Performance Counters and more.
Disclaimer: I am the author of AnyStatus
Check out the MSBuildCommunityTasks library. It has a Mail task.
Import this into your build project to send the mails.
To enable build notification e-mail alerts, in Team Explorer:
If you are not already connected to the team project that you want to work in, then connect to the team project.
Choose Home, and then choose Settings.
On the Settings page, under Team Project, choose Project Alerts.
Select one or more alert events.
In the Send My Alerts To box, choose Edit and enter the email address of each person who should receive the alerts. Use semicolons to separate multiple email addresses.
more details, see : https://msdn.microsoft.com/en-us/library/ms181725.aspx
I just discovered CatLight which just works with little fuss. Never had any success with AnyStatus. CatLight sits in your tray and notifies you when builds succeed or fail.
Under TFS 2008, you can right click on the TFS Project name (in Team Explorer) and select Project Alerts.
Then pick the A Build Completes alert and put your email address into the Send To field.
I think TFS 2005 also has this feature, but I can't rememeber. It's been awhile. ;)