21 December 2007

TFS 2008 Power Tools Released

The Team Foundation Server 2008 Power Tools has been released and is available for download here.  There are several tools/features included in this release - some new, some old:

  • Team Foundation Power Tool command-line tool (TFPT.EXE) - contains some new commands for configuring Team Explorer connection settings (tweakui) and for  destroying Work Items and Work Items Type Definitions (destroyWI, destroyWITD).
  • Process Template Editor - updated for use with Visual Studio Team System 2008 Team Foundation Server. It also has several improvements, including: the ability to launch standalone without a Visual Studio installation, performance improvements, improved discoverability and bug fixes.
  • Custom Check-In Policy Pack - a set of custom check-in polices including:
    • Custom Path Policy - provides a mechanism that lets you specify the source control path or paths upon which a particular policy acts.
    • Forbidden Patterns Policy - allows you to specify a file extension or a regular expression that you can use to keep certain file types from being checked in to source control.
    • Changeset Comments Policy - allows you to verify that the Comments text box in the Check In dialog box is not empty.
    • Work Item Query Policy - allows you to specify a team query to which the work item associated with a check-in must belong.
  • Team Foundation Server Best Practices Analyzer (BPA) - updated for TFS 2008 deployments.
  • Work Item Templates - adds additional menu items to the Team Work Item Templates menu.
  • Find in Source Control (NEW) - an addition to the Team Explorer menu that provides the ability to locate files and folders in source control by the item’s status or with a wildcard expression.
  • Quick Label (NEW) - allows labels to be easily applied to a given selection of files and folders in the Source Control Explorer.
  • Build Notification (NEW) - runs in the Windows task bar notification area monitoring the status of the build definitions you have specified.  It can be configured to show notifications when builds are queued, started, or completed for multiple build definitions spanning multiple Team Foundation Servers.

You can read more about what's included with the TFS 2008 Power Tools release here.

10 December 2007

Build Type Settings Changes

I've fielded a couple of questions lately about where some of the settings for build types in TFS 2008 are stored.  In the new version of TFS (2008) some of the build type settings have been moved from the TFSBuild.proj file to the TFS databases (mostly the TfsBuild database).  So, even though you see the settings within the XML file (TFSBuild.proj) the XML settings have no effect on builds within TFS 2008.  However, if you still have VS 2005 (or other "version 1") clients accessing your TFS 2008 build types, you should keep the XML settings in sync with the TFS 2008 database settings.

The settings that have been moved to the database include:

  • Description - the build type's description.
  • Build Machine - the default build agent.
  • Team Project - the Team Project the build type belongs to.
  • Build Directory - the directory where the files involved in the build are built.
  • Drop Location - the network location where the build files are "dropped".

If you create a new build type, you will see comments within the XML file noting the change in settings location.  For example:

<!--  DESCRIPTION
This property is included only for backwards compatibility. The description of a build definition
is now stored in the database. For compatibility with V1 clients, keep this property in sync with
the value in the database.
-->
<Description>This is my build type's description.</Description>

06 December 2007

TFSInfo Updated for TFS 2008

A few months ago I created a simple command line utility called TFSInfo that can be used to display various bits of information about a Team Foundation Server 2005 installation.  I have now updated this utility to work with TFS 2008 as well as TFS 2005.

 

You can see from the screen shot which information is displayed.  In case you can't see the image, the following information is displayed by TFSInfo:

  • AT server name
  • AT Version
  • AT Edition (e.g. Standard, Workgroup, or Trial)
  • DT server Name
  • DT Server Version (not available for TFS 2008)
  • SQL Server Version
  • Reporting Server URL
  • TFS Installation Date
  • TFS Product ID

You'll notice in the list above that the Data Tier schema version is not available for TFS 2008.  This is because the column that's used to determine the schema version in TFS 2005 does not exist in TFS 2008 (at least not in the same table).  I wasn't immediately able to locate a replacement column to retrieve the same information.  If I am able to determine how that information is stored (assuming it is) I will release an update.

The new version can be downloaded here.

NOTE: The Team Explorer Client 2005 or 2008 needs to be installed for TFSInfo to work.

03 December 2007

VS 2008 Add-Ins

As I (like many others) make the full-time transition from VS 2005 to VS 2008 I find that I'm having to update several add-ins and utilities that I've grown accustomed to.  Here is a short list of what I've updated so far:

Visual Studio 2008

  • GhostDoc 2.1.2 - I've become very accustomed to pressing Ctrl+Shift+D to fill in the XML comments for my code.  I'm glad to see that VS 2008 is now supported.
  • Project MRU Cleaner - This is a very handy utility for removing orphaned or otherwise unwanted solutions from the Recent Projects list in VS 2005/2008.
  • ReSharper - Although ReSharper does not fully support the .NET Framework version 3.5 yet, Jeffrey Palermo has published some instructions on how to get the latest version of ReSharper working with VS 2008.
  • Silverlight 1.1. Tools Alpha for VS 2008 - Nothing new here - it's just been updated to work with the final release of VS 2008.

Team Foundation Server

I'm still waiting on the full release of Team Foundation Server 2008 Power Tools as I've grown accustomed to using those tools on a regular basis as well - it shouldn't be long.  I also have a couple of add-ins that I've written that I need to get updated for VS 2008 as well.

02 December 2007

Omaha VSTS User Group is Coming

A co-leader (Tim Kelsey) and I have been planning on starting a Team System Users Group in Omaha for several months now.  The initial web site is finally up at www.otsug.org and we are excited to have our first speaker, Bill Maurer, scheduled for January 22nd, 2008.  Bill will be presenting on the new features and updates in VSTS 2008.  Time permitting, he will also cover some of what's coming in "Rosario".

With the addition of the Team System Users Group, there will now be no less than four Microsoft technology-oriented user groups in the Omaha area, including:

We will be holding the initial meeting at Farm Credit Services of America (my employer - and a user group sponsor).  Depending upon the preferences of the user group attendees, we will either continue having the meeting at this location each month or we will move the meeting around Omaha (much like the current .NET Users Group).  I will be placing a survey on our site in the next few days to get everyone's feedback and preferences.

I am looking forward to the inaugural meeting and all that follow.  I have no doubt we will have some great speakers presenting on some great topics and will learn a great deal from each other about all things Team System.

If you are in the Omaha area and would like to join the Omaha Team System Users Group, please visit our site at www.otsug.org and click on the "Join the group" link.  Also, if you're in the Omaha area or are just passing through and would like to present at one of our user group meetings, please submit the User Group Speaker Proposal document located in the Shared Documents section of the web site.

27 November 2007

Power Tools for TFS 2008 Roadmap

Brian Harry has posted a time line of which power tools will be released over the next month for TFS 2008.  In summary, these will include:

  • VSTS Web Access - the "final" version for TFS 2008.
  • MSSCCI Provider - will allow access to TFS 2008 from VS 2003, VS 2002, and VS 6 as well as other IDEs.
  • TFS Power Tools - the same basic TFS Power Tools that shipped for TFS 2005 but compiled against the TFS 2008 object model.
    • Process Template Editor - mainly bug fixes and small improvements.
    • Build Notification Tray App - this is a new Power Tool application that will allow you to monitor TFS builds via a Notification Tray application.
    • WI & WIT Destroy - support for the deletion of work items and work item types has been added to the tfpt command line utility.
    • Best Practices Analyzer - has been updated to work with TFS 2008.

It's nice to read that these updates will be released soon as they have definitely become a necessity in the day-to-day operations using TFS.

You can read the full details, including the timeline, here.

26 November 2007

TFS 2008 License Changes

Brian Harry recently posted details regarding a change to the newly released TFS 2008 licensing model.  In short, the new license structure will allow anyone in your company to perform the following actions against a TFS server (Standard Edition only - does not apply to the Workgroup Edition) within your organization without the need for a CAL:

  • Create work items
  • Query work items they've created
  • View work items they've created
  • Update work items they've created

I suspect this type of activity has probably been going on quite a bit in the past with TFS 2005 - it's just that it hasn't been all that easy to track.  This new change will at least remove some of the worry associated with trying to keep these types of users (i.e. the ones that fit the above profile) in compliance.

The downside (as Brian points out) is that there is no built-in tools to help you determine (or enforce) compliance.  It appears that they plan on providing some enhancements over the next year to address this issue.

What I like about this change is that it will give development shops a little more leverage on how they might choose to make use of the work item features within TFS.  For example, I'm currently finishing up a blog post on how to create TFS work items directly when an exception is caught within your application.  Previously, in TFS 2005, your end users would (legally) need to have a TFS CAL to utilize the exception handler.  Now, in TFS 2008, any end user in your company is automatically covered - no CAL is required.

What I don't like about it (I suppose I shouldn't be complaining - at least it's a start) is that it's overly restrictive.  Does it really hurt to allow full work item access to your employees?  If they can create and manage their own work items, what does it hurt to allow them to manage other work items (not created by them) as well?  Maybe that's a change that will come in the future as Microsoft works out the best fit for their TFS license model.  At any rate, it's a good start.

You can read more in the original post.

15 November 2007

NDiagnostics - Beta Release

Any of us that creates software on a day-to-day basis, that's actually used by someone other than yourself, has undoubtedly had to answer technical support questions about your software and/or troubleshoot why it's not working. In a lot of cases, you may have a dedicated support team that interacts directly with your customer base and they only contact you if they come across something they can't resolve or explain. Over time, the support teams tend to become very efficient at resolving application-specific issues regarding setup and configuration. However, when an application is first released, the process isn't so straight-forward and you may have to field a lot of questions.

Now, don't get me wrong, I'm more than happy to answer any questions I can about the software that I produce. However, I'm also interested in maximizing everyone's time (mine, the technical support staff's, as well as the end-user's). That is why I decided to create NDiagnostics. The purpose of NDiagnostics is to allow for the easy creation of a self-diagnostics utility customized for a specific application. For example, if your application requires certain files and/or folders to be present, a specific version of the .NET Framework, and possibly access to a SQL Server database, then you can create a custom configuration file that can quickly and easily scan a user's machine for compliance. Here's a sample screen shot of what NDiagnostics might look like after scanning a user's workstation:

In this example, the SQL Server Service's Startup Type was not set to Automatic as expected. However, you can quickly ascertain that the required .NET Frameworks are installed, the SQL Server service is running, Visual Studio is running (yet another strange requirement), my blog is available (yeah!), and the application's database is accessible.

This isn't necessarily a real-world example but it does demonstrate how easy it can make troubleshooting certain tasks. It only took a few seconds for the above tasks to run - it would have taken several minutes to verify these tasks manually (possibly hours if the technical support staff had to determine what to verify to begin with).

NDiagnostics is completely configurable via an XML-based configuration file. The configuration file defines the groups of diagnostic tasks to be run as well as the order of the tasks. NDiagnostics currently ships with the following tasks:

  • File Task - checks for the existence of a specific file and can also (optionally) check the version number.
  • Folder Task - checks for the existence of a specific folder.
  • NETFX Task - checks for a specific version of the .NET Framework.
  • Process Task - determines whether a specific process is running.
  • Registry Task - allows you to verify registry settings.
  • SQL Server Task - checks for connection to specified database; optionally check for table existence and/or query result.
  • URL Task - determines whether a specific URL is available (can verify web page or web service).
  • Windows Service Task - determines whether or not a specific Windows Service is installed, and optionally, the current status (e.g. running, stopped, etc.).

Being that this is the first release the set of tasks is somewhat limited. There are several new tasks currently in the works that will be made available in future releases. Also, the project just went "live" tonight so I'm still getting the on-line documentation up to speed.

So, if you have a need for a quick-n-easy diagnostics tool, give NDiagnostics a look. Please provide any feedback as I would like to make this utility as useful, friendly, and simple as possible. If you have any suggestions for new tasks, please post a comment here or leave feedback at the NDiagnostics site. Also, the source code is fully available so you can customize this application to your liking.

13 November 2007

TFS Book Wish List

Have you ever found yourself saying something along the lines of "If only I had more time, I'd write a book about such-and-such"?  Well, I've found myself saying that several times over the past year or so about Team Foundation Server.  Now, don't get me wrong, there are several good books currently available for TFS but none of them quite match what I'm looking for.

I'd like a TFS Automation for Developers book that covers the details for:

  • Programmatically creating new work items.
  • Programmatically querying work items and modifying them.
  • Creating custom check-in policies.
  • Creating custom build tasks.
  • Programmatically accessing and utilizing published unit test and code coverage data.
  • Programmatically accessing related SharePoint documents.
  • An in-depth explanation of the web services architecture and how to use it.
  • An in-depth explanation of the TFS Object Model and how to use it.
  • All of the above for both TFS 2005 and TFS 2008.
  • Anything else I happen to think of :-)

Granted, I can find examples for most (if not all) of the above items on the web today.  However, what I don't have is a comprehensive explanation of each of them and how they all relate and work together.

Searching Amazon.com for "Team Foundation Server" turned up 18 items (17 books and 1 TFS software package) of which only three appeared to focus on Team Foundation Server.  The most promising book out of these three is not yet for sale (although I've added it to my wish list so I don't lose track of it).  Just based on the title (Visual Studio Team Foundation Server [Microsoft .NET Development Series]) it may be close to what I'm looking for.

In the meantime, I still don't have the time (or necessarily, the skill) to write a reference book so I thought I'd start an on-line version of the tasks I outlined above.  The basic purpose of the new site would be to consolidate and organize the information necessary for working with TFS programmatically.  I also realize that MSDN already has a lot of information on it as well but it's not necessarily the easiest to traverse nor does it always have good examples to follow.

So, if you're interested in seeing anything specific, or if you've come across some great sites with great coding examples, please leave a comment.  I'll be posting back soon on the progress.

06 November 2007

SafetyTip - My First Mobile App

A co-worker recently sent me a link about calculating checksums for tips (i.e. the tip you leave your server when paying for a meal at a restaurant).  Without getting into the crux of the poster's original argument ("thieving restaurant servers" - I don't know how often this happens) I found the idea of creating checksums for tips intriguing.

That same night, at one of my family's favorite restaurants, I decided to put the checksum into practice.  However, I quickly realized that mentally calculating checksums for tips wasn't all that fun :-).

So, what's a software developer (with a Windows Mobile-enabled phone) to do?  Develop an application, of course!

I decided to build a simple Windows Mobile application that supports the following features:

  • Allows the entry of the total net amount (i.e. the amount on your bill)
  • Allows you to select a level of service (e.g. Ok, Good, or Excellent) with an associated tip percentage.
  • Allows you to select the tip calculation method (e.g. standard, checksum, or palindrome).
  • Calculates the appropriate tip amount.
  • Allows all default values to be modified.

Notice that I also implemented the "palindrome" method based on a comment on the original post.

The application has two screens.  The first screen allows you to select the tip level and calculation method and also allows you to enter the net (bill) amount.  As you enter the amount, the tip will be calculated based on the method you've selected.

main

The second screen (invoked by selecting the Preferences menu option) allows you to modify the application's default values.

prefs

Granted this is a simple but it's also my first mobile application so it's been a good experience (plus it's something that I'll make use of).  However, even though it's simple, I've learned a lot about the differences in controls between the .NET Framework versions and how to use the Pocket PC emulators as well how mobile applications are deployed.  There's still lots to learn but we all have to start somewhere :-)

If you're interested in the application, you can download the CAB file here.  The application is compiled against the .NET Framework Compact Framework 2.0 which must be installed on your PDA and targets Windows Mobile 5.0.