Welcome to MSDN Blogs Sign in | Join | Help

Building .NET 4.0 Apps with Team Foundation Build 2008

William Bartholomew, former VSTS MVP and author of the book Inside the Microsoft Build Engine: Using MSBuild and Team Foundation Build, recently joined Microsoft.  He's written a great post on the handful of steps you need to follow if you want to build .NET 4.0 applications with TFS 2008:  Building .NET 4.0 Applications Using Team Build 2008.  Check it out!

What features are in TFS Basic 2010?

Earlier, I wrote a post explaining where to find TFS Basic.  Someone asked a set of questions about TFS Basic, and I thought I’d post the answers here.

What features are in TFS Basic 2010?

Brian’s post describes a bit of the feature differences and also shows the installation process. It’s really much easier to talk about features not in Basic, as Basic is just TFS configured using a set of defaults to make the installation experience very simple. Basic does not configure SharePoint or SQL Reporting Services (RS), and because of the lack of RS there’s no warehouse. That’s it. Otherwise, it’s the same feature set as standard TFS. If you decide at some point later that you want to use those features, you can choose to configure them via the Team Foundation Administration Console (note that to use SQL Reporting Services, you must use full SQL Server and not Express).

You get additional features in TFS Basic of being able to use SQL Server Express 2008 rather than regular SQL Server 2008, though you are free to point Basic at an existing SQL server (default is to install SQL Server Express or reuse it if it is already installed), and you get the feature of being able to install on a client OS (Win7 or Vista).

Is TFS Basic limited to 5 users?  How can I add more?

No, TFS Basic is not limited to 5 users. You can have as many users as you like, so long as users 6 through N have TFS CALs, which are either purchased or ones included due to the user having an MSDN subscription. See my post with licensing comments from Doug Seven for more info. If you want to have more than 5 users, you may want to put TFS Basic on a Windows Server OS because the client OSes are limited to about 10 simultaneous connections, after which point connections are either queued (some buffer) or refused.

Is the new Excel reporting feature available (right click on a work item query and choose to create a report in Excel)?

You will not be able to use the Excel reports feature built into the product for TFS Basic since there is no warehouse.

Is web access available in TFS Basic?

TFS Basic does indeed include web access. There’s unfortunately no shortcut to get to web access via the right click menu in Team Explorer, which has been suggested. You can always find web access at http://yourserver:8080/tfs/web.

Posted by buckh | 0 Comments

TFS 2010 server licensing: It's included in MSDN subscriptions

Another big piece of news with the release of VS and TFS 2010 betas yesterday is the changes to TFS licensing for 2010 that make it even more affordable.  Here are the comments from Doug Seven, our licensing guru in marketing, on Soma's beta 2 announcement post.

Team Foundation Server 2010 will be included in the MSDN subscription that comes with Visual Studio 2010 Professional, Premium, Ultimate, and Test Elements. This copy of Team Foundation Server in licensed for unlimited development and test use (as is all MSDN software) and licensed for one production deployment. These MSDN subscriptions also include one CAL.

Team Foundation Server has three installation choices - Basic, Advanced and Custom.  You will be able to install this either on your client machine (very similar to client side SCM such as VSS) or on a server machine just like TFS 2008.

Team Foundation Server will also be available in retail for around $500 USD and will include a license term allowing up to five (5) named users without CALs to use Team Foundation Server. To grow to more than five users, simply buy CALs for the new users. This enables small teams of five or fewer to get up and running on Team Foundation Server for as little as $500 USD.

Of course having Visual Studio 2010 with MSDN means you can get Team Foundation Server up and running at no additional cost.

You can also hear more in an interview with Doug Seven conducted by three MVPS: The Ultimate Announcement Show.

I'm not a licensing expert, so I can't answer detailed questions about licensing.  I did want to make sure everyone sees this.  It's a really exciting change.

[UPDATE 10/20/09]  I wanted to add a clarification from Doug around the CALs and SQL.  There is a licensing whitepaper in the works that should be out soon.

Retail TFS does not come with 5-CALs. It has a EULA exception allowing up to 5 users without CALs. The primary difference is that CALs can be used to access multiple TFS instances. A EULA exception cannot. In other words, buying two TFS retail licenses does NOT give me rights for 10-users on one instance of TFS. It gives me rights to two instances with 5-users each. I need to buy more CALs to add users.

TFS also still includes a SQL Server license for use with TFS.  In other words, you can't use the SQL license included with TFS to do anything other than to support TFS.

Posted by buckh | 11 Comments

Where is TFS Basic?

TFS Basic is not a separate download.  It’s just a choice in the TFS configuration wizard.  So to get TFS Basic, you download the regular Team Foundation Server installation, either 32-bit or 64-bit (yes, TFS now supports 64-bit Windows natively), and then run setup.exe.  After the MSI (installation phase that more or less just copies files to your disk) is done, you’ll see the following dialog.  Choose Basic, and finish your TFS setup in record time!

image

Posted by buckh | 2 Comments

Team Foundation Server 2010 Beta 2 is now available!

With Soma's announcement today, Visual Studio and TFS 2010 Beta 2 are now available for download for MSDN subscribers.  The most exciting part of the TFS 2010 Beta 2 release is the debut of TFS Basic.  Brian Harry describes TFS Basic in detail in a post called TFS 2010 for SourceSafe Users.  Don't think about it as just for SourceSafe customers though.  Beta 2 is a "go-live" release, and I recommend checking out Brian Keller's post to Get read to "go live' with Team Foundation Server Beta 2.

TFS Basic will install on Windows 7 and Windows Vista.  Prior to Basic, you were required to have a Windows Server OS to install TFS.  So if you want TFS on your laptop, you can do it now.  Basic will automatically install the pre-requisites of IIS, ASP.NET, and SQL Server Express for you.  Just pop in the disk (virtually speaking) and go.  It's that easy.

Also, TFS 2010 (not just Basic) will now install on a domain controller. This was a request we heard fairly often from users, and we were able to add support in 2010.

TFS Basic is the same product as regular TFS except that you can use SQL Express, and you don't configure SharePoint or SQL Reporting Services.  It has all of the same version control, build, and bug tracking features.

Another great change we made in 2010 is in the configuration and administration of the server.  The vast majority of administrative tasks can now be done through the TFS Admin Console GUI.  Brian wrote quite a bit about this in the post, TFS 2010 Admin, Operations, & Setup Improvements.

Team System Web Access is now part of the product.  On a server with TFS installed, it is available at http://yourserver:8080/tfs.

You can upgrade from either TFS 2005 or TFS 2008 to TFS 2010.  The TFS 2005 users do not need to upgrade to TFS 2008 first.  Do follow the upgrade guide, though, because TFS 2005 users will need to upgrade from SQL 2005 to SQL 2008 and upgrade to SharePoint 3.0.

A 2010 version of the TFS 2008 Power Tools is not yet available.  We are planning to release an update to them, but we aren't yet able to share the timeframe.  Stay tuned.

Visit the MSDN forum Microsoft Visual Studio Team Foundation Server 2010 Beta 2 to post questions and get answers from the product team, MVPs, and the community.

Update [10/19/2006]   We have released a patch (download) for Team Explorer 2008 to handle some compatibility issues when using it with a 2010 server.  You can read about those issues in a blog post covering the full compatibility story for 2005 and 2008 clients with a 2010 server.  We plan to release a similar patch for Team Explorer 2005 around the time of TFS 2010 RTM.

For anyone just getting started with TFS 2010, I highly recommend reading Brian's post that covers the key concepts for TFS 2010.

If you are not doing a simple installation, you'll want to follow the TFS Installation Guide.  Be sure to follow the instructions on the download page to "unblock" the CHM file.

Finally, be sure to take a look through the TFS 2010 Beta 2 Readme, as there are known issues you'll need to know about (after all, it's a beta for a reason).

If you had Visual Studio 2010 Beta 1 installed, you'll want to read this before installing VS 2010 Beta 2.

Posted by buckh | 7 Comments

Dell Mini 9 and Win7: Getting a Microsoft Bluetooth mouse working

Win7 is awesome, so today I put Windows 7 Professional on my Dell Mini 9.  This is the third laptop on which I’ve installed Win7, and every time it puts a smile on my face.  The installation works well and generally most devices work after installation, minimizing time spent fiddling with drivers.  The few devices that don’t work after installation often work after getting the drivers from Windows update.

The only device not working this time was my Microsoft Bluetooth Notebook Mouse 5000.  The computer would find it and list it in the Bluetooth devices in Win7, yet it wouldn’t work (i.e., move the mouse pointer).  I started searching for solutions online.  One suggestion was to run the device driver installer from Broadcom’s Bluetooth Software Download page.  I tried that, but it fails with an error.

I ran across a thread on a forum where someone stated they’d installed the driver from Dell’s support page. I was skeptical about this since this download is for XP.  Since I couldn’t find a better answer and didn’t have much invested in this installation, I decided to give it a try.  I went to the Dell support page, entered my service tag, and downloaded the Broadcom Bluetooth driver 5.5.0.4100, A01.

The downloaded file is R197396.exe, and the installation takes a longer than I would expect to run from start to finish.  Along the way it pops up several windows showing progress for different kinds of devices.  Once it finished, I pushed the Bluetooth button on the bottom of my mouse to put it into discovery mode, right clicked on the Bluetooth icon in the Win7 notification area, chose to Add a Bluetooth Device, picked the mouse (the full name didn’t show up until I clicked on it), and the mouse started working properly.

The only problem I’ve found is that the My Bluetooth Places choice in the right click menu for the Bluetooth icon’s popup menu crashes.  Since I don’t need that, it’s not a problem for me.

The other change that I made was to have the Windows Bluetooth service start automatically.  To do that, go to Windows Start and type services.msc.  Right click on Bluetooth Service, choose Properties, and change the Startup Type to Automatic.

By the way, installing Windows from bootable USB thumb drives works really well.

If you know of a better solution, I’d be interested to know.

Technorati Tags: ,,
Posted by buckh | 3 Comments
Filed under:

Hosted TFS discounted for Microsoft BizSpark members

If you are in the Microsoft BizSpark program, you now have access to discounted TFS hosting from SaaS Made EasyPaul Hacker, a VSTS MVP, posted the announcement on his blog earlier this week.  He also provides some info on BizSpark, which is a fantastic program for startups.

BizSpark Hosted TFS

I would like to announce that SaaS Made Easy, LLC is now a network partner in the Microsoft BizSpark Program. What does that mean? It means that if you are in the BizSpark program you are going to be able to use our Hosted TFS service at a substantial discount. Please visit us to get more information on this awesome offer.

Microsoft BizSpark is a global program designed to help accelerate the success of entrepreneurs and early stage startups. In addition to a very generous software offer, BizSpark also provides professional support from Microsoft technical experts, as well as visibility on the BizSparkDB website.

What are the Requirements?
In order to register for the BizSpark program, your company must:

Be privately held
Be in business for less than 3 years
Have less than $1 Million USD in revenue annually
Enrollment is free. Microsoft will assess each startup a USD $100 program offering fee due at end of participation in the Program.

-paul

Posted by buckh | 0 Comments
Filed under:

Using Test Impact in VSTS 2010

Dennis Stone, a tester on Team Test, has posted a great walkthrough of using the new test impact feature of 2010.  If you aren't familiar with test impact, it's a feature that tells you which tests execute the code you've changed in a checkin.  Rather than run all of the tests, you can run only the tests that test the code you changed.

Test Impact Walk-through

One of the key areas of focus for Visual Studio Team System 2010 is to enhance the experience for testers. There’s already lots of overview information on many of the new features out there so I’m going to dive right in to one of my favorite new features.

In short, the Test Impact Analysis feature gives you a list of recommended tests based on the changes that were made in a build. As you run your tests through Microsoft Test and Lab Manager (code named Camano) you will have the option to run the Test Impact Data Collector which is one of the many built-in Data Collectors available while running tests. This particular data collector will associate the code paths you execute in your application with the test you are running.

When Team Build generates a new build it will analyze what code has been changed since the last build was done and then provide you with a list of the impacted tests. These are the tests that touch the same pieces of code that were changed since the last build.

For a more thorough explanation of the Test Impact Data Collector read this blog post by Amit Chatterjee.

more …

Also covering test impact but from a different angle, Jakob Ehn shows how to use and view the results in Visual Studio Team System 2010.

Posted by buckh | 0 Comments

TFS 2010 Beta 1: Don’t run initial configuration from the administration console (MMC)

Beta 1 for TFS 2010, along with VS and VSTS, is now available to MSDN subscribers and will be available for broad download shortly.  Be sure to check out the Microsoft Visual Studio 2010 First Look site to see what’s in this release, as well as the documentation on MSDN.  Brian has written posts on TFS 2010 features in administration and operations and work item tracking so far.

There’s a bug you’ll want to avoid in setting up and initially configuring beta 1.  If you choose not to continue on through configuration at the end of the MSI setup phase (in other words, you uncheck the box to launch the configuration tool), you must finish configuration by running tfsmgmt.exe configure to avoid causing problems with SharePoint.  After you have initially configured the server, you can and should use the Team Foundation Administration Console to make changes to your server.  We believe it's a great feature, and we want your feedback on it.  It's just the initial configuration of the server where we have this issue.

Here's a screenshot with the checkbox I'm talking about.  You'll want to leave it checked and continue through the configuration wizard.

image

If you choose to uncheck the box and then run the Team Foundation Administration Console (Start –> All Programs –> Microsoft Team Foundation Server 2010 Beta 1 –> Team Foundation Administration Console), here is what you will see.  Do not click the link to run the wizard.  Instead, run the server configuration wizard from the command line via tfsmgmt configure instead.

image

If you go to the Team Foundation Build node in the admin console, you will see a similar link for configuring build.  There are no issues with configuring build from the admin console, so that one is not a problem.

Here is the content from the Beta 1 Readme about this issue, including the full path to the command line tool.

1.3.4   Initial Configuration of Team Foundation Server Should be Run From MSI Program or by Command Line

Initial Team Foundation Server configuration fails on Windows SharePoint configuration if you access the Team Foundation Configuration Tool by clicking the link in the Team Foundation Administration Console instead of by launching Team Foundation Configuration Tool at the end of the installation phase.

To avoid this issue:

If you want to setup Windows SharePoint Server during Team Foundation Server configuration, you must launch the Team Foundation Server Configuration Tool by using one of the two following methods:

·         Launch the Team Foundation Configuration Tool by selecting the check box at the end of the Team Foundation Server installation

·         If you exited Team Foundation Server MSI program (setup.exe) without launching Team Foundation Configuration Tool, do not start the Administration Console from the Start menu item shortcut. Instead use following command line:

"%programfiles%\Microsoft team foundation server 10.0\tools\tfsmgmt.exe" configure

After Team Foundation Server has installed and configured Windows SharePoint, you can configure Team Foundation Server by using the Start menu to launch Team Foundation Server Administration Console.

If you end up in a situation where you have installed beta 1 by launching the configuration wizard from the admin console and ended up with a corrupt SharePoint installation, the easiest way to get out of the situation right now is to uninstall both SharePoint and TFS 2010 and then re-install TFS 2010 Beta 1 and let it install and configure SharePoint.  I'll update this post if we have a set of steps that is less drastic than this.

This was a problem we discovered at the last moment.  It is due to the fact that we force the Microsoft Management Console (MMC), which hosts our Team Foundation Server Administration Console GUI, to run our MMC plugin under CLR 4.0.  The reason we had to do that is because MMC uses an older COM API to host the CLR, which is now capped at CLR 2.0 due to changes made in CLR 4.0.  The side effect of that hack is that it causes child processes that are executed to also run under 4.0.  One of the processes that we run as part of configuration is stsadm.exe.  Running stsadm under 4.0 causes it to serialize some 4.0 objects in the SharePoint database, at which point SharePoint is broken.

If you go straight through the setup and into configuration, thus following the default path, everything will work.  If you choose not to continue with configuration after the MSI portion of setup has completed, you need to run tfsmgmt.exe configure to complete the configuration (running it separately like that avoids the problem with the MMC environment).

Once you’ve gone through the initial installation and configuration of SharePoint, you can use the new Team Foundation Server Administration Console with no restrictions.

For beta 2 and beyond, we have made changes (yes, past tense…we’ve been working hard on beta 2) that avoid this issue entirely.

Be sure to provide us feedback and let us know what issues you find in beta 1 by entering them into Connect.

[Update 5/19/2008]  I've added a couple of screenshots to make it more clear, and I've also added clarification that it's the initial configuration of the server where you need to be aware of this issue.

Posted by buckh | 13 Comments

TFS 2008 supports SQL 2008 SP1

SQL 2008 SP1 has just been released, and we've gotten a couple of questions about whether it is supported with with Team Foundation Server 2008.  We tested SQL 2008 SP1 with both the original release of TFS 2008 and TFS 2008 SP1, and we do fully support using it with either release of TFS 2008.

[UPDATE 4/14/2009]  If you are installing TFS 2008 and using an instance of SQL that already has SQL 2008 SP1 applied, you will need to follow the steps in the following KB article: How to install Microsoft Visual Studio 2008 Team Foundation Server on a computer that has SQL Server 2008 Service Pack 1 installed.  This is required due to the version number for SQL 2008 SP1 being different than what the TFS 2008 SP1 setup logic expects.

Posted by buckh | 2 Comments
Filed under: ,

Debug your build with MSBuild Sidekick v2.3

The folks at Attrice have released a new version of their MSBuild Sidekick, and it now includes a visual debugger for msbuild.  If you've ever tried to debug a build process, you know how tedious it can be and will want to check this out.

MSBuild Sidekick v 2.3 is released

We are happy to announce the release of version 2.3 of MSBuild Sidekick!

Many of you would remember “How would you spend $100 on MSBuild?” poll published on MSBuild Team Blog. MSBuild users were asked to vote on most valuable future features in MSBuild; and while we could not improve MSBuild engine performance or add inline tasks support we did implement visual debugger for MSBuild! MSBuild Sidekick v2.3 is now the one-stop solution for all your debugging needs such as stepping through the build, inspecting locals and setting breakpoints.

The new features in MSBuild Sidekick v2.3 are:

  • Visual debugger (you can analyze build sequence using diagram) with breakpoints support and integrated Globals/Autos windows for viewing properties/items values during debugging

  • Customized editors and integrated online help for MSBuild Extension Pack tasks
  • Ability to cancel a running build
  • Ability to edit Project element raw XML
  • Auto-detection of latest .NET Framework on tool installation
Technorati Tags:
Posted by buckh | 4 Comments
Filed under: ,

Sorting by multiple columns in work item tracking

Recently I was showing someone the results of a bug query and sorting by more than one column in work item tracking in Team Explorer.  When the person said he didn't realize that feature existed, I decided it would be worth posting.  This also works in Team System Web Access.

To sort by more the one column, simply hold the Shift key when clicking the column header of the column you would like to sort next.  If you want to sort descending instead of ascending, continue to hold the Shift key and click the header again to flip the sort ordering.

In the screen shot below, I'm sorting first by Priority and then by Area Level 4.  You cannot tell from looking at the column headers which column gets sorted first.

image

This works in the 2008 version and newer of Team Explorer and Team System Web Access.  I was using Team Explorer 2008 SP1 in the screenshot above.

Since I'm on the topic of subtle but useful features, there's a handy way to diff files in version control by holding the Shift key and double clicking on a pending change.

Finally, did you know that you can use the formatting toolbar in VS to insert rich text into your work items?  With TSWA it's more obvious because the formatting toolbar is shown just above the text box.  In TFS 2010, the work item editor in Team Explorer also shows the formatting toolbar with the text box.

[Update 3/23/09]  Sunder Raman, now program manager for the TFS Reporting feature area, reminded me of a couple of great posts he wrote a year ago.  Be sure to check these out for more useful work item tracking tips.

Why the CheckInEvent doesn't list all of the files in a changeset

I recently received a question from someone about the CheckInEvent.

We subscribe to the Notify event using the BisSubscribe tool. Basically we have many applications that share some projects, but as TFS has no mechanism for sharing we have written our own in house app.

We have hooked into Notify for the CheckInEvents and we check each file after checkin to see if it is one of our shared files. If it is then we bounce it around to various locations etc..

All has been working fine until recently we started getting problems on large check ins. After some investigation I have noticed that the string eventXml parameter does not contain all of the check in information. Bascially it seems to only hold a max of 25 checkins.

I wondered if you'd come across this problem, and if you had any advice??

What's happening here is that TFS limits the number of changes included in the XML for the event to prevent sending large (or even huge) amounts of data that may not be needed.  To get a list of all of the changes for a particular changeset, you must use the VersionControlServer.GetChangeset() method, specifying the changeset from the XML.

New book on MSBuild and Team Foundation Build

There is now a book dedicated to MSBuild and Team Foundation Build.  The book is written by Sayed Ibrahim Hashimi and William Bartholomew.  Sayed has written about MSBuild before, both in books and MSDN Magazine articles, and William is a Team System MVP with a lot of experience in customizing the build process in Team Foundation.

If you want to learn more about using build in Team System, you need to get a copy.

Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build

Product Description
The build process when code gets assembled to see how and how well it works is a critical step in software development. Developers had few options for customizing the build process before Visual Studio 2005 and Visual Studio 2008, but the Microsoft Build Engine (MSBuild) enables developers to customize each step during a build. MSBuild is extensible and uses an XML file to describe each step, allowing the build master or developer to easily change and augment how projects are built. This book offers hands-on guidance for customizing MSBuild, and provides a cookbook of examples on Web deployment, automated releases, and other essential topics. It also covers Visual Studio Team Foundation Build, the build engine in Visual Studio Team System.

Posted by buckh | 2 Comments

Fix for TFS Build 2008 SP1 to speed up your builds

Quite a few folks have reported longer build times and noticed that the build details view has a lot more output in it, and as a result of the extra output being logged, the builds are slower.  Aaron has written a post about a hotfix to speed up your builds in the SP1 version of Team Build.  This hotfix, like many others for TFS, is available on the MSDN Code Gallery site.

KB958845: TFSBuild TargetsNotLogged property fails to cut down noisy builds

Posted by buckh | 1 Comments
More Posts Next page »
 
Page view tracker