msbuild

MSBUILD Configuration: Copy output to staging area

Ok, I am not the best at MSBUILD. Actually, I don't know anything. I need some help configuring my solution file to tell MSbuild to copy the compiled output into a staging area. The solution has about 35 projects. All I need is around 5 of them the to be copied to the staging folder in release mode. Please assume I know nothing... Thank...

MStests through TeamCity

How do you run MStests through TeamCity and the MSBUILD option? Do you put these settings in the main solution? Thanks ...

How do i automate the branch/new team build process in TFS

We make a release branch from trunk at the end of each sprint. This is a manual job; we branch the src and manually edit the build config. This has proved to be an error prone process. Is it possible to automate it in TFS? ...

Read and edit an .ini file with MSBuild

I am looking for an MSBuild task/script that will allow me to control the version of an old VB6 project? The .vbp stores the version information as .ini style, but I cannot find a simple way to read and write the three entries. ...

Skip a project while building a solution using msbuild 3.5

I have a solution with a number of libraries + web site on folder. When I use msbuil vs. this solution it precompiles web site to a new folder name PrecompiledWeb. I want to skip it, just build all libraries. How can I do that? ...

msbuild builds always debug

I am trying to build release mode . like that msbuild LP.sln /p:buildmode=release Blockquote but i get always debug . any idea why ? I saw and checked following posts . link text link text thanks a lot . ...

TFS and msbuild version number with last changeset

I want to create a build number which looks like Major.minor.Date.LastChangeSetInTFS, the problem is how to get last changeset number from the TFS. Is there any property, or something?? ...

Log the time taken in each task when running a msbuild build

We have a long-running msbuild script that I'm trying to speed up. Is there a way to get msbuild to log the time spent in each target? I've had a look at the xml logger, but it just outputs the total time. Would I have to make my own logger, or is there something built in? ...

Passing an assembly reference in a custom MSBuild task

I'm trying to write an MSBuild task to build a database using FluentNhibernate mappings. The code for the task currently looks like this... public class CreateDatabase : Task { [Required] public string ConfigFile { get; set; } [Required] public string MappingAssemblyName { get; set; } public override bool ...

How can I determine why a build runs slowly in Visual Studio 2005?

I wanted to know if it is possible to know why a Visual Studio 2005 (MSBuild) build is taking a long time to build a project. Suddenly we are getting 7-minute build times on some computers, while others take less, such as 4 minutes. So I think I need to identify changes that were made to the project and are causing a longer build time....

MSBuild Batching - Can't figure out how to get a target to be run only for some Solutions

I have something like this in my TFSBuild.proj <ItemGroup> <SolutionToBuild Include="$(BuildProjectFolderPath)/../../ProjectA/ProjectA.sln" /> <SolutionToBuild Include="$(BuildProjectFolderPath)/../../x64 Installer/x64 Installer.sln" Condition="'$(Platform)' == 'x64' " /> <SolutionToBuild Include="$(BuildProjectFolderPath)/../../x8...

Custom MSBuild task with dependencies

I have written an MSBuild task that makes use of third-party assemblies. When I use the task in my project, MSBuild complains that it can't load the third-party assemblies (not surprisingly). Where should I place the third-party assemblies so that they are available to MSBuild. I tried adding project references to them without success...

Using CCNetLabel to set AssemblyVersion and PublishVersion with CruiseControl.NET

I am trying to deploy a Click Once application (build and publish) using CruiseControl.NET. I cannot find out where I can use the CCNetLabel to set my AssemblyVersion and/or PublishVersion. I would accept other solutions that would allow a unique version number per CruiseControl.NET deployment (Live and Development deployments). ...

Multiple Build definitions in VSTS 2008 help needed

Hi, I was wondering if the following can be done in VSTS 2008. I have a main branch and several branches where many code change will be going on. Is there a way to build a required branch on demand? Also I have many labeled versions of code and a main branch, is there a way to build a labeled version of the code on demand? Please help...

How to create a web site with an application using MSBuild Extension Pack

What is the correct way to create a web site using the MSBuild Extension Pack? I'm trying to use the MSBuild Extension Pack to create a web site using the following target. Unfortunately I don't have the syntax correct. This target will throw an exception saying "InvalidOperationException: The specified path already exists.\r". This is...

Getting Build URi or Build number of the last build from MSBuild

Hi all, I am trying to create a custom task for MSBuild so that it will send an email to the users that sais that a new version is up on the test server. I go the email part done, what i would like to do is add the work items that are included in this build. I tried the MSBuild extention (used to send the email) but the feature to get...

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

run MsBuild tasks (targets?) after the solution is built?

Since this question seems to have baffled / underwhelmed SO I will rephrase it with a partially formed idea of my own. Could I somehow set up a batch file or something that runs after the whole solution is built, and this batch file would call msbuild to build specific targets inside a certain project? In order for it to work, I would ...

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

MSBuild batch task without including metadata value used for batching

Is it possible in MSBuild to batch tasks without having the metadata value you are using to bucketize the items appearing in the output? Let's say I've got the following .proj: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; <ItemGroup> <ExampColl Include="Item1"> <Bucket>1</Bucket> </ExampColl>...