3.4. Advanced Build Scenarios

When working with Team Foundation Build, there may be common scenarios that will fall outside the purview of simply creating a basic build task. Here are the three top scenarios and some strategies to implement them.

3.4.1. Building .NET v 1.1 and VB 6.0 Code

Team Foundation Build does not support building .NET Framework 1.1 code out of the box. Fortunately, Microsoft has worked on an open-source initiative called MSBee—an unsupported power toy built by the Developer Solutions Team that will allow you to build .NET 1.1 solutions using Visual Studio 2005 (a common scenario and much-requested feature). You can learn more about MSBee at http://blogs.msdn.com/clichten/.

MSBee allows developers to build managed applications in Team Foundation Build and Visual Studio 2005 that target the .NET Framework version 1.1. You can download a copy on GotDotNet: gotdotnet.com/codegallery/codegallery.aspx?id=9ac94da5-8e5a-4a33-beda-9b8d00970371.

If you choose not to use the toolkit, you have the following options:

  1. Use devenv.

  2. Override the AfterCompile target.

  3. Use the EXEC task to invoke devenv and build appropriately.

You can learn more about this process by reading the following blog post: http://blogs.msdn.com/nagarajp/archive/2005/10/26/485368.aspx.

To build Visual Basic 6.0 code, Visual Basic 6.0 (the IDE) must be installed on the build server. Use the same EXEC task steps to call the VB compiler that will build the code.

3.4.2. Building ASP.NET Applications

Get Professional Team Foundation Server now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.