msbuild

How to MSDeploy a built website package to a virgin IIS website

I am trying to automate our build/deployment process. So far I am using: a Visual Studio 2010 solution with a main Web Application project (and dependent projects) MSBuild MSDeploy CruiseControl.Net So after much wrangling and gnashing of teeth, I now have CCNet kicking off an MSBuild script to build, package and deploy the website....

Building a .NET assembly which uses Crystal Reports on a build server

I'm trying to Build a .NET assembly which uses Crystal Reports on a build server without installing Visual Studio or the Crystal Reports Runtime. The version of Crystal Reports we are targeting in our code is the one that came along with Visual Studio 2008 and we are using MSBuild to build this project. I've copied what seems to be all...

Passing MsBuild Command Line Arguments with BuildEngine

I have the following code to build a project from another C# app: var buildEngine = new Engine(); buildEngine.RegisterLogger(new ConsoleLogger()); var success = buildEngine.BuildProjectFile(pathToCsProjFile); if(!success) { Log.LogIt("On Noes! We Broke!"); } else { Log.LogIt("It Worked!!!!!!"); } Currently it builds the defa...

Visual Studio and msBuild fire BeforeBuild differently on WIX project

I have a WIX (Windows installer XML) v3, project which contains references to other projects in my solution. I am using the copy task inside the BeforeBuild event of the WIX project to collect some of the output of the references projects for later use my heat.exe. When I build the WIX project (not the solution) inside visual studio eac...

Does MSBuild have an equivalent to the NAnt filterchain functionality for replacing tokens in files?

The NAnt task for copying files allows you to specify a filterchain that modifies the files as they are copied, and this is usually used for replacing tokens in a template file with specific values (e.g. substituting in a build number). Does MSBuild have equivalent functionality in one of its built-in tasks, or one of the freely availab...

Can Msbuild build a VDD project?

Possible Duplicate: create smart device cab through msbuild I know MSBUild struggles to build some Setup Projects and the advice here is to use WiX to achieve the goal. however my google-fu turns up nothing in the way of indicating if Msbuild can cope with VDD projects however from looking at the format of the file I suspect...

issue with using MSBUILD with maxcpucount option

I am using MsBuild on a 4 core machine. I am giving the following command line to build 4 projects belonging to a big VC++ solution ( having more than 4 projects ALL with no mutual dependencies ). I am using Visual Studio 2008. To speed up the build time I am trying to take advantage of the maxcpucount options but it seems not working....

How to disable "warning as error" for generated files only? (MSBuild)

On our continous integration server (Teamcity 5.1.3) we have a msbuild script that is automatically building our applications. When we enable "Warning as error": in Visual Studio, it build fine (it ignores the methods within "*.designer.cs" files. But on the build server we always receive the following error: [(Rebuild target(s)):] som...

Loading web pages from msbuild

As the last step of my msbuild script I have to load a web page from the server I have just released and make sure it contains the correct version (it is enough to just check if the version is contained textually). What is the easiest way to do it in msbuild? ...

MsBuild does not look in the good directory for custom task's second-level dependencies

I wrote a MsBuild Task : MyTask. In my solution, I have the Task project and others projects. MyTask references a project (say ProjA) which references third assemblies, say (dep1 and dep2). The projects all builds well and I have the outputs in one directory (Compil). In this directory i have all the dll's I want : MyTask.dll, ProjA.dll...

How to keep the subfolder in DropLocation constant in TFS build

I have a build definition setup with a drop location. The binaries are moved into this location, but under a new directory (named as build number) every time. Is there a way to have the same location over written everytime. we have some batch files that copy the binaries out to multiple servers that will be accessed by the end users. We ...

What could cause the Wmi custom MSBuild task to throw "ManagementException not found"?

The Wmi task is part of the MSBuild Extension Pack. On one of our development machines, it thrown ManagementException not found. Here's the target: <Target Name="Clean"> <ItemGroup> <WmiProps Include="State"/> <WmiProps Include="DisplayName"/> </ItemGroup> <!-- Create list of VIKAD services that are currently ...

Problem executing custom build rules in parallel inside the VS 2010 IDE

I have a solution with several projects in it that executes many custom build steps. Some projects depend on other projects, but most of the build steps are independent of each other. When building inside the VS 2010 IDE, I am getting errors like this: error MSB6003: The specified task executable "cmd.exe" could not be run. The proc...

How do I run two different types of tests within the same build script in team build?

Hello All, I have the following sequence of things to do in my team build script after the sources are compiled: -) Sources compiled -) Run BVT tests (all tests in dlls *.bvt.dll) -) Set build quality to BVTs Passed (or Rejected, if tests fail) -) Run Unit tests (all tests in dlls *.unittests.dll) -) Set build quality to Unit Tests Pas...

When using msbuildtasks UninstallAssembly the service is only queued for deletion and server needs restart

I am setting up a project to run under the teamcity integration server on windows server 2003 (with sp2). The integration tests run using msbuild with the latest version of msbuildtasks v1.2.0.306. All code is build with .net 2.0. In our build.xml file we remove all the services used by the systems, rebuild them all recreate them and th...

Do the MSBuild Community Tasks or Extension Pack work with Mono's xbuild?

Has anyone got the MSBuild Community Tasks or MSBuild Extension Pack working with Mono's xbuild? They both seem to have MSI installer, so I guess it's a case of manually transferring the files to the Mac (in my case)? If anyone's done it, I'd appreciate the benefit of his/her experience. ...

How can I use MSBuild Copy Task to Copy To Multiple Destination Folders?

I'm trying to copy a folder recursively to multiple destination folders using MSBuild's Copy task. I've seen the following question which gave me a good start, but I must be missing something: http://stackoverflow.com/questions/924972/msbuild-copy-to-several-locations-based-on-list-of-destination-parameter A snippet from my build file...

Third-party custom loggers for MSBuild

Are there any interesting custom loggers for MSBuild already written? I am especially interested in loggers that would record system load (CPU/Memory/IO) data during the build and relate that to actions performed by the build. ...

Weird issue with Web Deployment projects 2010

i'm in the process or upgrading my CI configuration to Web Deployment projects 2010 (from 2008) i'm geting a really strange issue durin build as shown below - i've been looking into it a a few hours to no resolve, and am starting to think the issue is elsewhere...) C:\Program Files (x86)\MSBuild\Microsoft\WebDeployment\v10.0\Microso...

NUnit tests are executed slower by MSBuild than by NAnt

I am in the process of porting a NAnt build script to MSBuild 4.0 and I am seeing a rather interesting behaviour. MSBuild is slightly faster when executing filesystem and compilation tasks, but takes twice as long to run NUnit tests. Here's some background info: I am using nant-0.91-alpha2 and MSBuild 4.0 I am using NUnit v2.5.7 NAn...