Brain dump on CreateNewWorkItem task for Team Build

  Lately there have been a lot of questions about CreateNewWorkItem task. Today I will be sharing some details of this task.   Team Build opens a new work item on detecting a compilation error or static analysis failure (build break). MSbuild task is expected to update the work item “FoundIn” field with the current build number and…

4

How to make "Team Build" skip getting certain folders?

  You have two options Manually edit the WorkspaceMappings.xml file, which is present in $/TeamProject/TeamBuildConfigurations/<your build type> folder. Note that the client side mappings are ignored and only server side mappings are used. For the selected build type, you need to Check out the WorkspaceMapping.xml file Add the cloak mapping Check in the file. For example you…

2

Question on "CoreCompile" target in file Microsoft.TeamFoundation.Build.targets?

Why invoke targets through call to “MSBuild” instead of using DependsOnTargets and dividing up the targets accordingly? MSBuild task is a standard task shipped with .NET Framework (refer Microsoft.build.tasks.dll). It is used to build both solutions (sln) and projects (.xxproj) files. In Team Build we are using MSBuild tasks to call build and publish targets…

3

Resolving references in Team Build ( Part 3 )

Scenario   We have a common project that contains company wide logic that rarely changes and almost every other project references these common assemblies. I don’t want (or need) to build these assemblies with each projects nightly build, but would rather just grab the dlls from a common bin folder. Currently this common bin folder…

4