team-build

TFSBuild.proj and Importing External Targets

We want to store our overridden build targets in an external file and include that targets file in the TFSBuild.proj. We have a core set steps that happens and would like to get those additional steps by simply adding the import line to the TFSBuild.proj created by the wizard. <Import Project="$(SolutionRoot)/libs/my.team.build/my.team...

TFS Build Server drop location error

We're using TFS Build Server to ensure that all files checked in by developers are going to compile to a working source tree, cuz there's nothing worse than a broken build! Anyway we've having some problems with the drop location that Build Server wants to use, we keep getting this error: TFS209011: Could not create drop location \b...

Proper build reports in TFS with multiple products under a project

Underneath one "Project" in TFS we have multiple products. This is because for us, a project is a business unit and they each can have many applications that we develop for them. Each one has its own folder in source control(under the TFS project) and each one has its own TeamBuild set up. The issue I have is that whenever a build run...

How do I get Team Build to run MbUnit tests?

I am having trouble getting Team Build to execute my MbUnit unit tests. I have tried to edit TFSBuild.proj and added the following parts: <Project ...> <UsingTask TaskName="MbUnit.MSBuild.Tasks.MbUnit" AssemblyFile="path_to_MbUnit.MSBuild.Tasks.dll" /> ... ... <ItemGroup> <TestAssemblies Include="$(OutDir)\Project1.dll" /> ...

Manually Trigger a TFS Team Build

How would you manually trigger additional team builds from a team build? For example, when we were in CC.Net other builds would trigger if certain builds were successful. The second build could either be projects that use this component or additional, long running test libraries for the same component. ...

How To: Permanently Rename Team Build 2008 Workspaces

Team Build 2005 used the following workspace name template: ServerName_TeamProject_TeamBuild. Team Build 2008 is deleting workspaces named using 2005 template and creating new ones named ServerName_1 etc. Is there a way to make Team Build use intelligently named workspaces? ...

What are some of the best resources to learn MSBuild with?

I am looking for any and all suggestions of the best and effective resources that the StackOverflow community has used to better learn MSBuild with an emphasis on integrating unit tests and later static code analysis tools such as FxCop and StyleCop into the build process. I have tried to find good clear documentation on adding unit tes...

Team Build now Painfully Slow

We're running into performance issues with our implementation of Team Foundation Build Server and I'm running out of ideas on how to speed things up. We've already added a few PropertyGroup elements to increase the performance on several steps (SkipClean, SkipLabel, SkipInitializeWorkspace), but I think we need to undergo a major restruc...

Can I override DropLocation target to avoid network latency?

In Team Build 2008, the Drop Location for a build is no longer specified in the .proj file, and instead is stored in the database and maintained in the GUI tool. The GUI tool only accepts a network path as a drop location (i.e. \\server\share) and will not accept a local path. Our build server also hosts the dropped files, so it seems ...

Team Build MSBuild Task Does Not Update Main Build Log File

I have an after build event in my main TFSBuild.proj file that uses the MSBuild task to call a deployment task after a successful build. It looks like this: <ItemGroup> <DeploymentTargets Include="..\Sources\Build\SkunkWorks.Build.Deployment.targets"> <Properties></Properties> </DeploymentTargets> </ItemGroup> <Target Na...

How to build only a handful of projects contained in a solution using MSBuild?

I am trying to setup a TFS Team Build and am new to MSBuild. I have a solution that contains a few projects (MyProject1, MyProject2, ..). I find that setting up the team build I could only select which solution should be built and when performing the build the build target for all the projects becomes the same and the output for all proj...

Create a new TFS Team Project and use existing source control folder

I currently have a source control folder in TFS with all of my source code. Is it possible to create a new team project and use the existing source control folder? I have the option to create a new source control folder, create a new branch or not to create one at all. But is there a way of using an existing folder? [Edit] To clarify: ...

best practices for using the sql server 2005 database project in visual studio 2008

what are the best practices for using the 'sqlserver 2005 database project' in visual studio 2008? I have created a project file. How to create the scripts for stored procedures, views and Tables? How would I generate scripts to populate some of the look up data? What would I do about modifications that may need to be run on the pro...

Team Build, copy file target issue

Hi I have this team build target setup to after compile <Target Name="AfterCompile"> <Copy SourceFiles="$(SolutionRoot)\Development_VS2008\MyCompanyName.SharePoint.12" DestinationFolder="c:\testing"></Copy> </Target> I want the folder structure copied from source to destination... Amazingly I am getting this error Could not...

How to copy a recursive directory structure in TFS Team Build?

Is it possible to copy a directory in a team build target? ...

Passing a parameter to MSTests using MSBuild

I've got an issue that was wondering if could be solved in a particular way. I would like to be able to pass a parameter or set some kind of variable in an MSBuild script that will be run on a TeamBuild server. This parameter would be used as a condition in the setup of a TestFixture in MSTest to decided which concrete implementation o...

Is it possible to edit files during a Team Build?

I'm looking for a way to edit a configuration file (web.config in an asp.net project) in a Team Build. Specifically I'm looking at either uncommenting or adding identiy impersonate in the config file before copying the built web application to its destination. I know that it's possible to have multiple config files and copy one over th...

simple Exec task in a BuildDef (tfsbuild.proj) in TFS and TeamBuild

This does not work (taken from tfsbuild.proj) when queued in BuildExplorer: Builddef for WFPApp1 . . . . . . . but this does (taken from the app1.csproj) and build/rebuild inside the VS IDE csproj for WFPApp1 . . . . . . in the first example, the build just seems to hang indefinitely until cancelled in the Build...

VB6 - How to automatically break compatibility from command line (or msbuild)

We're implementing Team Build and know we need to write MSBuild scripts to build our legacy VB 6 app. It's configured to use Binary Compatibility and we break Compatibility occassionally and we'd like our new automated build process to be able to Break Compatibility automatically. Anyone know how to do this or if it's even possible? Al...

Assembly references won't resolve properly on our build server

We code in C# using VS2008 SP1. We have a server that runs Team System Server 2008 which we use for source control, tasks etc. The server is also our build machine for Team Build. This has been working just fine for a long time. Untill now. We get these error messages when trying to build one of our projects that has a reference to one e...