Resolving file references in team build ( Part -2 )

Salient points about file references File reference is used to reference outer system assemblies (i.e .NET framework assemblies, third party assemblies or assemblies that are not generated by the current solution). File reference is defined by the reference item defined in the build scripts (.xxproj file). The reference item has following attributes  Include contains the file…

9

Example on how to resolve project to project reference (for single solution) in team build.

  Consider a simple solution (OfficeSolution.sln) that has one main project (OfficeSolution.csproj). The main project has dependency (project to project reference) on two independent sub projects (WordApplication.csproj and ExcelApplication.csproj). Note that both the sub projects also belong to the same solution. The folder structure for the sources is shown in the following diagram.   ├───OfficeSolution │   │  …

3

Resolving assembly references in Team Build ( Part – 1 )

  In this entry I will be discussing about project to project references. I will be enumerating about different scenarios and mentioning workarounds to get them to build in Team Build. Scenario 1 – Single solution containing multiple projects.  Projects have inter-dependencies. Case 1.1: All the sources are in the same team project. References are…


Guidelines on structuring solutions and projects in team build

Single solution is best for small size projects. The most scalable and efficient way for managing and building large applications is team build is to have multiple independent solutions. Always avoid solution to solution references. They are not supported in Whidbey. Editing “Microsoft.TeamFoundation.Build.targets” file is (strongly) not recommended. Project to project references are supported within…

1

How to running multiple tests in team build?

  In beta3 you have better control on the way tests are executed. Some common scenarios are:- To run tests of different categories:- You need to modify tfsbuild.proj file to introduce additional test category. For example if your metadata item is defined as <MetaDataFile Include = “$(SolutionRoot)\HelloWorld\HelloWorld.vsmdi”>                    <TestList> BVT1 </TestList>      </MetaDataFile>              and…

3

Team build reported successful build but still some assemblies are missing at drop site?

Question :- I was building 3 projects. The sln and csproj files of the first and thirld project supported building for configuration (“Debug|x86”) but second project didn’t supported it in its build scripts. I build these projects using Team Build for mentioned configuration. The build went through fine and the build report mentioned the build as…