tfsbuild

Rhino Mocks 3.5 failing in TFS integration build while running test lists

Build server: TFS 2008, W2003 Error message: System.IO.FileLoadException: Could not load file or assembly 'Rhino.Mocks, Version=3.5.0.1337, Culture=neutral, PublicKeyToken=0b3305902db7183f' or one of its dependencies. Access is denied.. This happens only aprox. last 2 weeks. Same tests were successful before and still are when runn...

How can we overwrite EXE files while users are running them?

Background: Our companies internal user's run our .Net programs on 10-20 windows terminal servers. The executables are all stored on a central file server running windows 2003. Some of the terminal servers are running windows 2003 and some are running 2008. Issues: When we release a new version of one of our programs we renamed the ...

Visual Studio 2010 on Team Build server?

Do I need to install Visual Studio 2010 on my TFS 2010 Build server, if I want to run Unit Tests and Coded UI Tests as part of my build process? ...

How to create a TFS2010 Team Build Template for getting source and call msbuild.exe

I have a build.proj, that is a MSBuild file and can be run locally. All I need from TFS is Get the sources from TFS Source Control. Call "MSBuild.exe /t:Deploy". Update the build status based on the result of MSBuild. I have tried to make a template combining the DefaultTemplate.xaml and UpgradeTemplate.xaml. But so far, no luck :...

Trying to run corflags from TFS Build 2010

I am using an InvokeProcess activity in TFS 2010 to try and run the corflags application on a built exe. C:\Builds\4\testing\Sources\BuildAssets\corflags.exe C:\Builds\4\testing\Binaries\Executable.exe /32bit+ However I am getting the following message: corflags : error CF001 : Could not open file for writing I am running the TF...

Why TFS does not allow multiple collections to be connected with a single same Build Controller?

Hi all, According to here and here TFS 2010 does not allow multiple project collections to use a same Build Controller. Why? I'm going to setup some another more build controller as virtual machines. But it seems somehow not practical. Because our company is going to have several project collections. Is it a good work-around? Is there a...

How to make build definition in TFS Build 2010 configurable w.r.t input variable values and "items to build"

We are using TFS Build 2010 for Builds. We have two branches of source code (Lets say branchA and branchB). Now as a part of the build definition we set the projects to build: Now to employ the same build definition from branchB will mean that I create another build definition file with same content, with only the items to build set t...

Build fails because of xml documentation error

I am trying to build a ASP.NET MVC 2 project that uses Lucene.Net. I make a standard build definition in TFS 2010. When I queue a new build, it fails on this error: CSC: Error generating XML documentation file 'xxx\xxx\Lucene.Net.xml' ('Access is denied. ') But in my project properties for Lucene, I don't have xml comments checked. How...

Is it possible to publish TFS 2010 Builds to IIS 6?

Before I spend too much time trying to make this work, I would like to know if it's even possible. I can build the projects fine using TFS. I can also publish directly from Visual Studio without issue. But when trying to publish via TFS, it is trying to use the following url: https://dev.server.com:8172/msdeploy.axd?site=dev.server.c...

TFS 2010 Get operation fails periodically on large files (> 1MB)

Occasionally I get an error from my builds with the following error message: [Large File Name]: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. One or more errors occurred while performing a Get operation. Everytime this happens, the file is always over 1MB in s...

TFS Build - Treat compiler warnings as errors?

Is there a way to enforce "Treat warnings as errors" on the TFS Build level? I know you can do this on a project by project basis, but need to enforce on the TFS level. ...

build VS2010 project with TFS2008 build server

is it somehow possible to run tests with it? I am always getting message: (CoreTestConfiguration target) -> MSBUILD : warning : Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Build. ...

TFS InvokeProcess to run under other credentials

Hi! We have customized the build process with a InvokeProcess action that runs a powershell script that deploys our sln. Problem is that this script must be run under a given user (not the tfsbuild user). How can we achive this? Alternative 1: Make the InvokeProcess run as a different user - Alternative 2: Make the powershell script...

Error 'TF215097:...Cannot create unknown type for...' custom CodeActivity

Hi all, I'm trying to create a CustomActivity to run after each successful build. I've followed the exact steps of several tutorials http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/03/08/lessons-learnt-building-a-custom-activity-to-run-typemock-isolator-in-vs2010-team-build.aspx http://www.ewaldhofman.nl/post/2010/04/29/Cu...

Code Coverage possible for TFS Build 2008 building Visual Studio 2010 Project?

We have moved to Visual Studio 2010 but our TFS folks are not ready yet. After some work, we can get the build to work, but we don't get code coverage. We are running using the MSTest test runner. Does anyone know any tricks to get TFS to report code coverage using Visual Studio 2010 on a build server that has a TFS 2008 Build agent? ...

Restart AppPool using TFS Build 2008

Any help with TFSBuild.proj script to restart AppPool aftercompile task? Using TFS 2008 to deploy Web Application. Thanks. ...

Tfs 2010: Why is my build account explicitly denied all permissions?

I'm setting up a new deployment of tfs 2010. I've got a couple stub projects to be built sitting inside a solution, and I'm attempting to configure a continuous integration build on it. So, I configured a build with all the defaults, and kicked it off. I got this error: TF215097: An error occurred while initializing a build for build de...

WiX: Mysterious and hard-to-diagnose ICE validation errors on build server build

I'm trying to integrate WiX into my automated build solution using Tfs2010 running on Server 2008 R2. Everything seemed very easy, and then I get this: light.exe: Error executing ICE action 'ICE01'. The most common cause of this kind of ICE failure is an incorrectly registered scripting engine. See http://wix.sourceforge.net/faq.html#Er...

Tfs 2010 Build: Continuous Integration and Gated Check-In together?

I already have a CI build running on my Tfs2010 instance, but I'd like to get a Gated checkin build running as well. There are subtle differences between the ways I would like these two builds would run, however. Specifically, I'd like the Gated checkin to not produce bug workitems on failure, not associate changesets and workitems on bu...

How do I keep folder tree and publish websites in TFS 2010?

I have a visual studio solution that consists of several web applications, windows services and other class libraries. I am in the process of configuring it for continuous integration with TFS 2010. The default build template puts every binary in the drop folder, and creates a _PublishedWebsites folder in which it publishes every web ap...