team-build

Team build of Web Projects generates App_web_xxxx.dll files and TFSBuild.Proj Script

Hi all, I have a web application that has some non-web projects as well. When using Web Deployment, a single assembly is generated for all the aspx.vb files. When using Team Build (TS 2008), a lot number App_Web_xxx.dll file(s) are generated instead of a single assembly. How can i solve this problem and change the TFSBuild.proj file ...

Need TSBuild.proj Script for Separate x86 and x64 builds using Team Build in TFS 2008?

Hi all, I want to build x86 and x64 builds using a single script in TFS 2008. Later on i need to move them to different output dirs and zip them. Here is my script. I need a bit of guidance of the build script. Please help. <Target Name="BeforeBuild"> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> ...

Automatic incremental SQL Script generation for incremental, nightly builds when using Team Build in TFS 2008 and Visual Studio 2008 ?

hi all, hope that everybody here is OK. We are using VS 2008 as development tool, TFS 2008 as version control as well as build automation. Some of our developer use dbpro for databases changes and some use SQL Server management studio. I am trying to automate build for Web Application built using C# and VB.Net. Our scenario is such tha...

Team Build error : ASPNETCOMPILER : error ASPRUNTIME: '/localhost:8080' is not a valid virtual path. Any suggestion ?

Hi all, I am trying to build Web Application solution built using VS 2008 and facing the following error. ASPNETCOMPILER : error ASPRUNTIME: '/localhost:8080' is not a valid virtual path. I have absolutely no clue how and why is is occurring? Is it related with the deploy project settings or web site properties? The Solution is checke...

errors during dotfuscator 4.5 task with TFS Build (Team Build with TFS 2008)

Hi all, I am invoking dotfuscator task via TFS Build a.k.a Team Build , taken from -=Dotfuscator Task with Team Build =-and receiving the following error: Build FAILED. (AfterCompile target) -> error MSB4061: The "Dotfuscate" task could not be instantiated from the assembly "C:\Program Files\MSBuild\PreEmptive\Dotfuscator\4.0\PreEm...

Team Build sends error when trying to compile a Structuremap method

Hi, I'm getting a strange error when trying to compile a solution that is using StructureMap on Team Build. When I try to compile the solution locally on Visual Studio it works fine, but when trying to queue a new build in Team Build I get the following error: Overload resolution failed because no accessible 'Use' can be called wit...

tf.exe Unable to detrmine the workspace

Hi all, I am trying to call TF get command via Tem Build script. I am getting the following error Unable to determine the workspace. Folks over the internet tell that this error is because Team Build cannot find the workspace because it is being called from a directory which is not part of the workspace. The solution presented is ...

Team Build's build number and $(Rev:.r)

TFS Build 2010 uses an internal build number. It's similar to $(Rev:.r). $(Rev:.r) increases in each day while internal build number are increased in other way. The questions are: What is the official name of "internal build number"? How to access "internal build number" in macro format in order to use in "Build Number Format" in a bu...

WriteBuildMessage not displayed

Consider this simple msbuild script (xaml): <Activity xmlns=[....]> <Sequence> <mtbwa:WriteBuildMessage Message="Test message"/> <mtbwa:WriteBuildWarning Message="Test warning"/> </Sequence> </Activity> I have a tfs build definition based on this script. When I queue a new build in tfs, the warning is displayed under "view...

Team Foundation Server Build Failure "the semaphore timeout period has expired"

I have serveral build tasks set up in TFS 2008. Intermittently (and constantly at present) the builds fail with the message: TF209011: Could not create drop location \server\share\BuildName_20100729.6: The semaphore timeout period has expired. Both the TFS and drop location server are VMs, not sure if this is likely to be part of the i...

Code coverage missing when building .NET 4 apps on Team Build 2008

I'm building VS2010 solutions on a TFS2008 build agent with VS2010 Ultimate installed; code compiles fine, and the tests all run fine, but when it comes to code coverage, nothing is being reported. I've checked that the .testsettings file has Code Coverage enabled and that I have selected some assemblies to instrument, and if I run the t...

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

Using MSBuild task for ftp a directory in TFS 2010

Hi all, Is there any tutorial to show how can I use MSBuild tasks like FtpUploadDirectoryContent to copy file/directory to a remote host using FTP in Team Build 2010? I never used a MSBuild task in TFS 2010. ...

Extract, zip and publish TFS source-controlled items to FTP server

I want to publish nightly builds + source code of a specific project on a tfs 2010 server (local network, inside the firewall) to a (local network, in the dmz) ftp server. Build Get latest version Zip build and code Copy to ftp server Copying the files can use ftp protocol or copy to network share. Can I do this easily with team-b...

How do I get partially succeeded team builds to still output to the drop directory

Hi, I'm using Visual Studio Team Build. My build compiles stuff and then runs some automated tests. If the tests fail, the build ends with status "Partially succeeded". When this happens, the only file in the drop directory is the build log. It seems that team build only copies the contents of the Binaries folder to the drop directory i...

Targeting the 3.5 Framework using MSBuild 4.0 Assembly Conflict

I'm attempting to create a 3.5 build from a 4.0 set of code. It almost works the following msbuild options: /tv:3.5 /p:targetframeworkversion=v3.5. The issue is that I get a conflict for those classes that have moved to new assemblies in 4.0, for example: error CS0433: The type 'System.Web.Security.RoleProvider' exists in both 'c:\Win...

Team Build 2010 software requirements for VS 2008 clients

One of our TFS 2010 requirements is to support software projects that still use Visual Studio Team System 2008 for development. My question is whether a Build Server based on Team Build 2010 can compile 2008 code by itself. I mean connecting to TFS 2010 using Visual Studio Team Suite 2008, which means we are planning to install the Forwa...

Skip dropping build files in TFS Team Build.

I'd like to set up a TFS 2008 build in a way that it runs on every check-in and also nightly. The thing is that I'd like to keep the output from the build only for the nightly builds (with the check-in builds only acting as verification). What is the best/suggested way of skipping the CoreDropBuild step conditionally? ...

Setting properties in triggered build.

When queuing a new build using VS it is possible to pass in arguments to MSBuild which let's you do thing like skipping some steps of the build or do some things conditionally. Is it possible to pass in such arguments to a build that's triggered by a checkin or a nightly build? ...

Why Microsoft Ajax Minifier doesn't generate mini file with Team build 2010?

Hi, I just used the wonderful tool Microsoft Ajax Minifier and it's working very well when I build my MVC application on my machine but when I check-in in source control and started build by the Team Build 2010 it doesn't create the min files, for sure I can't put the mini files inside the source control as the recommendation from the Mi...