How to Build a .NET 1.1 Application with Team Build

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

Because .NET 1.1 is not directly supported by MSBuild, it is not supported by Team Build. Microsoft has released a project on CodePlex named MSBuild Extras (MSBee) that supports building .NET 1.1 applications.

In order to build your .NET 1.1 applications, you need to upgrade your project file to a .NET 2.0 project file. You will also need to edit the Team Build project file so that it builds using the .NET 1.1 tools rather than the .NET 2.0 tools.

To build a .NET 1.1 applications with Team Build
  • Upgrade your .NET 1.1 solutions to .NET 2.0. You can do this by opening the solution in Visual Studio 2005 and running the Conversion Wizard, or by running devenv projectname /upgrade
  • Ensure that the .NET 1.1 Software Development Kit (SDK) is installed on your build server.
  • Download and install MSBuild Extras from http://www.codeplex.com/MSBee
  • Download BuildingFx11inTB.targets from http://blogs.msdn.com/gautamg/attachment/578915.ashx
  • Check out the build type from source control that will build your .NET 1.1 project.
  • Copy BuildingFx11inTB.targets to the directory containing the build type and check the file into source control.
  • Edit TFSBuild.proj file:
    • Import the BuildingFx11inTB.targets file:

<Import Project="$(MSBuildProjectDirectory)\BuildingFx11inTB.targets" />
  • Add a property defining the CSharp targets:

 <PropertyGroup>
     <AdditionalPropertiesForBuildTarget>CustomAfterMicrosoftCommonTargets=$(ProgramFiles)\MSBuild\MSBee\MSBuildExtras.Fx1_1.CSharp.targets</AdditionalPropertiesForBuildTarget>
 </PropertyGroup> 

  • Check TFSBuild.proj into source control.

Additional Resources

Last edited Jul 26, 2007 at 7:06 AM by prashantbansode, version 1

Comments

No comments yet.