teambuild

TeamBuild - Best way to divide Project output

I have a teambuild setup that builds a solution that has several projects in it. When the build is done all the binaries are lumped in to a single location. Is there a good way to get these to go in project specific folders? (Similar to what you get when you build in Visual Studio?) Example: MySolution | +-> Project 1 | ...

Team Build to build solution in different TFS Projects

We are using TFS2008 and TeamBuid to build our product. I have SolutionAA in TeamProjectAA that uses a file reference to a compiled library (SolutionBB) that is checked in to TeamProjectAA. Now this works fine. Now the source code to the library is checked in TeamProjectBB. The problem arises when I need to due a full build using Tea...

Why does TFS not report errors and warning generated in the MSBuild exec task?

In my TFSBuild.proj I have the following Exec commands: <Target Name="AfterCompile"> <Exec Command="@echo Program.cs(12,20): warning CS1002: ; missing"/> <Exec Command="@echo Program.cs(13,20): Warning CS1003: ;; missing"/> <Exec Command="@echo Program.cs(14,20): error CS1004: ;;; missing"/> </Target> The TFS build fails, ...

TeamBuild: How to create a bug on a partially successful build.

Hello, I am using TFS 2008 and writing my builds using the built-in TeamBuild. I have the build set up in such a way that it will create a work item of type Bug upon failure, and will also create a bug upon unit test failure. However; today our build partially succeeded due to the fact that an exec task kicked off an executable which ...

Incremental Builds, with Version "Bumps", in TFS 2008

I need Team Build to provide version numbers while performing an incremental build. I need this for both .csproj and .vcproj files. How do I do this? Evidently Jeff Atwood provided the solution for .csproj projects at a link that no longer works: blogs.vertigosoftware.com//teamsystem/archive/2006/07/06/Adding_the_Build_Number_to_your...

Does VSTS 2010 RC Team Build code coverage require Visual Studio to be installed on build server?

I ran a build on VSTS 2010 RC with code coverage enabled and got this message in the build output: "The test settings file you are using specifies to run tests with code coverage enabled. To use this feature, Visual Studio Premium or Visual Studio Ultimate is required. The tests will be run without code coverage enabled." Does this me...

TFS 2010 RC: How to fail a build for low code coverage?

How can I cause a build to fail when code coverage is below a certain threshold? ...

How to include asp.net assets when using Team Build 2008

I am able to configure our Build Server (Team Build 2008) to build our asp.net application. I've done so via <ConfigurationToBuild Include="Debug|Mixed Platforms"> <FlavorToBuild>Debug</FlavorToBuild> <PlatformToBuild>Mixed Platforms</PlatformToBuild> </ConfigurationToBuild> Problem though, the asp.net assets(eg. script folder...

How to get MSBuild Exec to run a java program?

I am trying to run a command line action in my Team Build (MSBuild). When I run it on the command line of the build machine it works fine. But when run in the build script I get a "exited with code 3". This is command that I am running: C:\Program Files\Wavelink\Avalanche\PackageBuilder>.\jresdk\bin\java -classpath "WLUtil.jar;WLPac...

Unit Test output in MSBuild/TFS 2008

I have a build in TFS 2008 which includes the running of a UnitTest project. I have configured my build as such that in the drop folder after each build, I get a StyleCop.log, FxCop.log and would like to place the trx or output from the unit tests here also. I can see that my unit tests are running as part of the build, however current...

Why does Tfs2010 build my Wix project before anything else?

Hi all, A similar question was asked and answered about a year ago, but was either a different issue (everything was in beta) or misdiagnosed. It's located here: http://stackoverflow.com/questions/688162/msbuild-task-fails-because-any-cpu-solution-is-built-out-of-order. My issue is that I have a wix installer project, and after upgradi...

How can I get TFS 2010 to build each project to a separate directory?

In our project, we'd like to have our TFS build put each project into its own folder under the drop folder, instead of dropping all of the files into one flat structure. To illustrate, we'd like to see something like this: DropFolder/ Foo/ foo.exe Bar/ bar.dll Baz baz.dll This is basically the same question as was as...

TFS 2010: How to deploy a windows service as a part of a build?

Hi Guys, We need to be able to deploy a couple of windows services to the remote machine as a part of a build. This is a nightly build which deploys the whole application to the TEST environment so it has to be automated somehow. For the Web project MSDeploy can be used, as well as for the DB servers. But what about windows services? T...

Code coverage in-place instrumentation: Cannot fully backup the binary error

Can anybody help with this error in the log of my Team Build 2010 build? It only seems to occur when I have two build agents running on the same machine at the same time. Run has the following issue(s): Code coverage in-place instrumentation: Cannot fully backup the binary 'C:\Builds\3\MyProject\Binaries\MyProject.UserMan...

CompileWorkflowTask

When building a VS2008 solution using TFS TeamBuild 2010 the CompileWorkflowTask throws the error: Using "CompileWorkflowTask" task from assembly "System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Task "CompileWorkflowTask" (TaskId:631) C:\Program Files (x86)\MSBuild\Microsoft\Windows ...

How to use MSBuild Community Tasks in Team Build 2010?

How to use MSBuild Community Tasks in Team Build 2010? As you know TFS 2010 uses Windows Work Flow instead of Tasks and Target like previous version. Many Thanks ...

How to write a Team Build Process Template (2010) from scratch?

I know DefaultTemplate.xaml does everything needed. But I gonna learn team build this by creating an entire new build process from scratch. I need to know which activities must be included, in which order and so on. This must be using WF in Team Build 2010. Many Thanks in Advance UPDATE: I found this link in MSDN that describes build ...

Team Build vs MSBuild?

can some one explain the difference between Team Build + MSBuild ? also how do they differ in relation to VS2008 and VS2010? ...

Build VS2010 solution on Team Build 2008 - MSTest failed to run

Hello folk, I have a weird problem while building VS2010 solution incl. unit tests on a Team Build 2008 server. It builds the solution and also can run the test without an error, but after running the test I get following warning which makes the build breaking: MSBUILD : warning MSB6003: The specified task executable "MSTest.exe" ...

How do I set input path for binaries in WIX project to MSBuild output path on TFS?

I want MSBuild to build WIX 3.5 project containing static files and binaries from another project's output folder. While with static files it all works just fine: I just set Source attribute of File element to "..\AnotherProject\Static\StaticFile.ext", I can't reference binaries, because they aren't in "..\AnotherProject\bin\Release\" fo...