Welcome to MSDN Blogs Sign in | Join | Help

Building .NET 1.1 application using Team Build

One of the FAQs in Team Foundation forums have been on "how to build .NET 1.1 application using Team Build".   My colleague Nagaraju put up this blog to give out detailed steps for this. Apart from this, there were various other solutions on how to build .NET 1.1 using MSBuild (and hence in turn by Team Build) from different folks like one by Jomo.

All this solutions were essentially a hack... they mostly worked but lacked elegance.  The developers wanted better solution.  Considering the increasing demand for better support for building .NET 1.1 using MSBuild, the MSBuild team came up with project called MSBee or MSBuild Everett (code name for VS 2003) Environment.  The Beta 2 of MSBee is available here.

The MSBee could be used with Team Build also.  To do so, you need to do the following -

  1. Install MSBee and other required components on the Build Machine. (Refer MSBee ReadMe)
  2. Upgrade the solutions that you want to build to Visual Studio 2005 format using the wizard or the /upgrade command line switch.  (If you want to still use VS 2003, you can backup the solutions and upgrade.)
  3. Modify the TFSBuild.proj file as mentioned below.

The modification required in TFSBuild.proj are -

a) Download and checkin the attached BuildingFx11inTB.targets alongside TFSBuild.proj. (I am trying attachment to a blog for the first time... hopefully it will work!)

b) Add an import statement to TFSBuild.proj file after import of Microsoft.TeamFoundation.Build.targets file.  The import statement would look like -

<Import Project="$(MSBuildProjectDirectory)\BuildingFx11inTB.targets" />

c) Add following property to point to the 1.1 targets file -

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

And thats all. The steps a) and b) are required because the current version of the targets file did not provide easy way to pass additional properties while compiling individual project files. We are considering fixing this for next release to simplify this.

Note that the above solutions assume that all your projects are in C#. Instead, if all the projects are in VB, change the MSBuildExtras.Fx1_1.CSharp.targets in the property defination above to MSBuildExtras.Fx1_1.VisualBasic.targets. In case you have mix of C# and VB, use the workaround suggested in section 4.2.2 of "MSBee ReadMe.doc"

Thanks!

Published Wednesday, April 19, 2006 3:47 AM by gautamg

Attachment(s): BuildingFx11inTB.targets

Comments

# Using Team Build to Create .NET 1.1 Applications

Wednesday, April 19, 2006 12:52 PM by It's my life... And I live it...


Great to see that MSBee is providing even greater fruit. There is a blog
entry that goes over the...

# Passing custom properties to each individual solutions in Team Build

Thursday, April 20, 2006 7:51 AM by Gautam Goenka (MSFT)
Though one of my earlier blogs is titled &quot;Building .NET 1.1 application using Team Build&quot;, the principal...

# VSTS Links - 04/20/2006

Thursday, April 20, 2006 10:02 AM by Team System News
Gautam Goenka blogs about building .NET 1.1 applications using Team Build and how to write a custom msbuild...

# Developing MSBee - FxCop, NUnit, and Team Build

Thursday, April 20, 2006 5:53 PM by Geek Runs Through My Veins
In my previous Developing MSBee posts, I mentioned some issues I was having with FxCop and NUnit.
Regarding...

# Compiling .NET 1.1 Projects along with the Team Build Scripts

Saturday, May 05, 2007 10:30 PM by Suresh Muthuswamy

MSBee is one of the good option to integrate .NET 1.1 Projects with VSTF builds. But you need to convert

# Gautam Goenka MSFT Building NET 1 1 application using Team Build | storage bench

Anonymous comments are disabled
 
Page view tracker