Working with multiple team projects in Team Build

    Building solutions that reference to assemblies belonging to different team project   Scenario   Assume that we two projects (ConsoleApplication1 and ConsoleApplication2) under team project (TP1) and they are using the assembly (commonlibrary.dll) that is checked in under a different team project (TP2). Let us assume the corresponding paths under version control are…

18

Easy way of doing customization for all build types in Team Build

  What is the best way to override the properties, items and targets defined in Tfsbuild.proj and Microsoft.TeamFoundation.Build.targets file? Additional how to pull all the customizations out of specific build type (Tfsbuild.proj) and make it available for all build types so as to reduce replication and make things more deployable?   You need to create…

0

Defining common fxcop ruleset for all projects/solutions/configurations

  User wants to configure a common set of fxcop rules and use them for all projects/solutions. Does he need to configure the common set for every new project/solution/configuration?    No. User need to override the “CodeAnalysisRules” property to include the common rules he wants to use across the projects/solutions/configurations. He can define the property…

6

Interesting behavior in desktop build …

  Desktop build not stopping immediately on build break …   Details   If I am building two solutions sln1 and sln2 for two configuration debug|x86 and release|x86 and there is a compiler error in sln1. The build process tries to build sln1 (for debug|x86) and gets build break. Unfortunately MSBuild does not stop but goes on to…

0

Workspaces in Team Build

  Workspace represents the client side view of the source control repository. When you create new build type using wizard, you have the option of selecting the template workspace. This implies that you want to have the same view of repository as defined in the template workspace. There is one problem with this approach. Each…

0

How to call the same target multiple times at different build stages?

The code sample describes how you can invoke a particular target (i.e. init) multiple times at different build stages (i.e BeforeBuild, AfterBuild, etc). Please note that you can easily invoke this common target with different custom properties based on build state (i.e we are passing different value to stage property based on invoking target.)   <Project xmlns=”http://schemas.microsoft.com/developer/msbuild/2003“> <!– main…

1

Issue with desktop build for VC projects (in Team Build)

  Please note that desktop clean for VC projects is not happening in post beta3 bits of Team Build. The reason is that in Team Build we are not using the default location for dropping the generated binaries. We are overriding the OutputDirectory using the overrides file (vsprops). When we invoke the build target, the binaries are…

1

What is Microsoft.TeamFoundation.Build.targets?

  Targets file is any valid MSBuild script that contains the definitions of targets, tasks, properties, items, etc. The file should end with the extension of .targets. MSBuild ships with several standard .targets files. You can refer this link for more details.   Microsoft.TeamFoundation.Build.targets file is standard file that we ship with Visual Studio Team…

0

Team Build (MSBuild) build engine

  Team Build uses MSBuild to build sources. MSBuild engine runs the build in two passes.   The first pass is the declaration pass where properties and items are evaluated and imports happen. All the conditions present on properties, items and imports are evaluated. Please note that properties and items referenced will be evaluated in…

0