tfsbuild

Msbuild and SVN update

I want to write a simple task which will update and commit source code that was Nightly build to SVN. I was on the msbuildtasks.tigris.org page, and downloaded the dll's but I have no idea how to write it. Could you please provide some basic samples? ...

Integrate Silverlight Unit Tests in TFS Build

Hi, We have been creating silverlight unit tests by creating a plain vanilla .net unit test project, removing all references except for the unittestframework one, and then adding references to the SL assemblies we need (system, System.Core, ...). For more information, look at this blog post. We can do this, as we are adhering to the ...

Msbuild and SLN unbindig

I want to unbind my sln file from TFS server and publish it on SVN is there any "easy" option to do this. It's easy to open sln and chose unbind option in Visual Studio, but does any one ever tried to automate this process? There is a solution to edit sln file using xmlpoke and deleting binding information, but is it safe? ...

NAnt or TFS build which is better?

There was a question about Msbuild and NAnt advantages and disadvantages. Now let's see which is better TFS Build(with msbuild) or NAnt. In my opinion NAnt because you can easily move the building environment in few seconds to another machine (depends on copying files), also it's easier to manage, much faster to debug and it's not integr...

How do I build a 3.5 solution with MSBuild 4.0?

Hi, I've been trying to move one of our projects to TFS 2010 Beta 2 to benefit from the new Agile process template and the Test And Lab Manager without moving to VS2010 yet (since it is missing CF support). The problem is that our .NET 3.5 Compact Framework projects don't build in Team Build 2010. It's complaining about a AddHighDPIReso...

No link to the test results in the Build Results reports in TFS 2008

Is there a way to display the test results on the build results page returned by Build.aspx page? Because right now you only get to see the total number of tests and the number of failed and passed tests as in the sample: Result details for Any CPU/Debug 0 errors, 90 warnings, 12 tests total, 4 tests passed, 8 tests failed Errors and ...

Problems with Copy Target in TFSBuild.proj

As part of my TFS (2008) build I want to manually copy the binaries and Views of an ASP.NET MVC project to a number of different locations. All existing binaries and views are copied successfully. Unfortunately, however, any newly added views are ignored during their first build. If I then start another build, they are included. Here is...

TFSBuild.Proj and Manual SQL Server Work Help?

Using the VS 2008 GDR update, I have created a database project. I have created a SQL Server deployment package. I have created a database unit test. Using some wizards, the stuff got into my tfsbuild.proj file so near the end of the automated build process a database is created. I lack a little control of the whole process, I now see....

TFS build 2008 - BuildNumberOverrideTarget DependsOn not executing in correct order for initial build

Hi, I've created a tfsbuild.proj file that builds a release version of my solution and in it I have created a custom target for BuildNumberOverrideTarget that handles custom versioning. I store the version number in a file location in TFS and the custom task will get the version number, check out the assemblyinfo.cs files, edit the vers...

Deploy web applications and windows services using TFS 2010

Just went from TFS 2008 to 2010 at a client site and now wondering what happened to the TFSBuild.proj files from the TeamBuildTypes folder. I've already got the builds and drops working and now I need to get the old deployments working again. We used to do this with AfterBuild targets in the TFSBuild.proj. That mechanism seems to have mo...

Building select projects only with Team Foundation Build

I’m trying to set up Team Foundation Build and so far it’s running ok with builds, tests and code analysis. My problem is, that I can’t figure out how to build just a subset of the projects included in the solution. I know how to use the configuration manager to create custom solution configuration that will build/deploy a selection of...

TFS 2008 Build Release Note Like Report

I would like to get some visibility of what changes have gone into our TFS build. Is there some way of finding out all of the resolved work items that have gone into the last X number of builds up to a certain date? Could this be done by creating some kind of TFS report or query. If so, has this been done before? [UPDATE] I have disco...

Excluded projects block Team Foundation Build test step

A followup to this question, Building select projects only with Team Foundation Build: I’ve now successfully “isolated” three of the projects in a solution with 20+ projects. One of the three projects is a test project, which contains unit tests for one of the other projects (a class library). Team Build is running fine, just the three ...

Configure Team Foundation Build to create workItem on compilation warning (and error)?

I would like to comfigure the TFS Build to create a work item on compilation error and warning. I do not wants a bug if my project compile with 0 errors and 0 warnings. I have found the following line in the TFSBuild.proj config file: <WorkItemFieldValues> Symptom=build break; ... </WorkItemFieldValues> It...

TFS: Is this possible?

We have 3 environments: dev, test, and staging. I want to check in and out of TFS. When we make changes, I want to promote the code to the dev web server. Next I want to promote the changes to test, then to staging. Would it be possible to do this with Team Foundation Server? ...

What is the variable signifying the TFS project name?

I am creating a Team Foundation Server (TFS) 2008 build agent for a project of mine. For the working directory, we don't use the default $(Temp)\$(BuildDefinitionPath). Instead of Temp, we use a specific folder. That folder path includes the Team Project's name. Here comes my question. Is there a variable replacement for the Team Project...

How to Recursively Delete wildcard files in TFS Build?

I want to recursively delete files that match a certain pattern as part of my post-build cleanup routines in TFS Build. I've tried this... <Delete Files="T:\DeploymentDir\**\A*" /> No errors in the build, but it doesn't work. ...

TFS 2008 with VS 2010 (Beta 2)

My experience with TFS is limited. We run Team Foundation Server off a build server I will denote as 'Alice.' Alice has been working great until we ugraded to VS 2010; and with the urgency of a build coming up in the next few weeks, my question is how do we get a successful build? I followed the instructions listed here: http://richardsb...

Excluding Multiple Files in TFS Build

I'm trying to exclude a series of files from a custom deployment step in my TFS 2008 build definition. I want to include all files except those starting with either P0 or P1. Here are some of my attempts... <ItemGroup> <FilesToCopy Include="$(BinariesRoot)\Debug\*.*" Exclude="$(BinariesRoot)\Debug\P0*.*;$(BinariesRoot)\Debug\P1*.*" />...

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 | ...