msbuild

Best way to create a wix fragment file based on User-defined directories to be used in MSBUILD

In the spirit of this question by Si here: http://stackoverflow.com/questions/471424/wix-tricks-and-best-practices. I am trying to determine the best way to get create wix fragments based on a directories. File harvesting, so to speak. For example under the bin\release folder I could have many different folders plus files that I want ...

Automating .Net deployment using Cruise Control .Net

I've currently got CC.Net setup for doing builds and it's awesome. But now I want to go all the way and use it for deployment as well. I was thinking about installing CC.Net on staging and after a build completes and it's autouploaded fire the forcebuild trigger to staging and have it use msbuild and the necessary extensions to gac, in...

Why does Nant driven MsBuild compile to different directory on different machines?

I wrote a Nant script that executes MSBUILD.exe to compile a project on my dev machine. On my dev machine, the projects builds its output to bin\x86\Release and my Nant script zips up the contents of that directory. I then commit everything to SVN and let TeamCity run the Nant script that executes MSBUILD.exe to compile the project and z...

How to run MSUnit tests with MSBuild

I have a MSBuild script which looks similar to: <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt; <Target Name="Build"> <MSBuild Projects="MyProject.UnitTest.sln" Targets="Build" /> </Target> </Project> How do I run the MSTest unit tests which are within the solution? I am looking for somethin...

dll copied to output path from wrong folder

all of the projects in my solution have an output path of "..\Release" for Release builds and "..\Debug" for Debug builds. All of the projects works fine except for one. Whenever I build the problematic project in Release the dll that gets copied to "..\Release" comes from "obj\Debug" instead of "obj\Release". This happens both in VS ...

MSBuild Task Configuration Property

Three VS Solutions. First is configured to build as Release, and the other two set to build as Debug. When running a simple MSBuild script explicitly stating the configuration to build (Debug) the first project is still built as Release. Sample script: <Target Name="Build"> <ItemGroup> <ProjectToBuild Include="$(Solution...

Append get parameter on static paths to force content expiration in build process

I've noticed a lot of sites, including stack overflow append ?v=36556 to their static file path to force the browser to re fetch the new version. On the stack overflow podcast it was mentioned they do this as part of the build process. I'm just wondering if there is any existing msbuild tasks or utilities for doing this? Or should I j...

Trying to use MSBuild task <Xml.ModifyFile> from Microsoft.Sdc.Common.tasks

Hi I have a problem with the Xml.ModifyFile task which I do not understand. Can you guys help? My goal is simply to manipulate an attribute in an xml document. Im fairly new to the world of xml and especially msbuild hence I how a hard time interpreting the error message i am receiving. It seems to me that my build file is valid so ...

Log4NET setting overwritten by AssemblyInfo Task

I have a project that uses log4net and works fine on the developer machines. When we build, a step in our build scripts calls the AssemblyInfo task to set version numbers and dates, etc. But the AssemblyInfo file also loses the line: [assembly: XmlConfigurator(Watch = true)] Is there any way to have the AssemblyInfo task not overwri...

Circular file references not allowed

Hi, I am having a problem in building my solution in VS2008. Normally, it compiles fine in the environment. Sometimes, it fails with: /xxx_WEB/secure/CMSManagedTargetPage.aspx(1): error ASPPARSE: Circular file references are not allowed. I rebuild and it works fine. Now, however, I am in the middle of setting up a CruiseControl.NET ...

Is there any advantage to building my .NET application with the 64 bit framework?

We use msbuild to build our .NET application on a server dedicated to builds. We are migrating to new hardware which has 64 bit Windows 2003. I can build the application using the 64 bit version of msbuild found in Framework64 or I can build it using the 32 bit verison found in Framework. Is there any advantage to building with the 64...

Process timeout without showing any error in test execution using cc.net

nunit tests fails when run through cc.net saying process timeout. Process has been killed All works fine when through nUNit or VS. Also cc.net will then show the results of previous build even if the build is a clean one. Any help plz. ...

How do you get Cruise Control to Email the unit test results from Gallio(MbUnit)?

I have a build server that uses Cruise Control to run our test cases. I have successfully configured ccnet 1.4.2 to display the Gallio test results in the webdashboard but I can't seem to get ccservice to email the Gallio test results out in the auto generated Emails. I have tried editing the .xsl file but to no avail. I am merging th...

Generating an atom or rss feed as part of an msbuild process

I'm thinking it would be convenient to alert interested parties to the completion of the build process via an Atom or RSS feed. I'm guessing someone somewhere has taken the time to do this, but...maybe your google-fu is better than mine, but this turns out to be a hard thing to search for. ...

TeamCity - How to create an installer package?

I'm pretty new with TeamCity but have 2-3 years experience with CC.NET-t. I'm familiar with MSBuild but maybe TeamCity has other ways to build things. I see that TeamCity has a nice UI and great plug-in framework. But I have no idea how can I configure an installer package build. My questions: I've checked out the source and built th...

How to build ASP.NET web site the way VS2008 does using msbuild?

With web sites in VS2008 (the ones without .csproj files), a build does a kind of validation where the site is 'compiled' to nowhere, and web site dependencies are copied into the web site's Bin directory. I want to do this exact process but at the command-line using msbuild. That is, I want an msbuild task that my msbuild target can...

What is the bare minimum required to get NUnit tests to integrate with Visual Studio regular build?

Hi, I'm aware there are dozens of questions about this and blog after blog post but can someone put the simplest answer (or link to the existing question if there is an appropriate answer) to get the following working on Visual Studio 2005: NUnit tests execute on Visual Studio regular build (e.g. the absolute minimum changes to existi...

MSBuild Recursive Copy with %(ConfigurationToBuild.PlatformToBuild)

Hi I have the following task, which because of the combination of DestinationFiles and DestionationFolder does not work, but it grabs the concept of what I want to do: <CreateItem Include="$(Destination)\**\*.Generated.*.*"> <Output TaskParameter="Include" ItemName="GeneratedFiles" /> </CreateItem> <Copy Condition=" '%(Configuration...

[MSBuild] Where can I get a list of all the properties available in the project file?

I'm looking for a resource to list all the built-in properties defined in an MSBuild project file. Specifically I'm using a Team Build project file, but from what I understand they are one in the same (correct me if I'm wrong). I already know about the reserved properties: http://msdn.microsoft.com/en-us/library/ms164309.aspx But I've ...

Getting This project doesn't have any tests error in cc.net

I am getting the following Warnings while running tests using cc.net c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets (,): warning MSB3245: Could not resolve this reference. Could not locate the assembly "nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"...