msbuild

CruiseControl.Net error: Unknown plugin for <msbuild>

I'm trying to get CruiseControl.Net working with MSBuild (this is my first exposure to CruiseControl.Net). I thought I'd done the configuration correctly, however I just get the following error message when starting up: [cc]Jun-22 20:02:55 Main - error setting config file on controller net.sourceforge.cruisecontrol.CruiseContr...

Solutions files and non-MS build systems

Hello, Visual Studio 2008 uses its own solution file format, and different build systems like NAnt (and even some complex MSBuild cases) use their own. How do you keep them synchronized? Are there any best practices about doing so? Any automated scripts, plugins...? Is it viable not to build projects under VS and use only external buil...

MSBuild getting property substring before underscore symbol

In MSBuild I have a property which value is Name_Something. How can I get name part of this property. ...

What can CruiseControl .net (or any CI server) do that MSBuild or NAnt can't?

I ask this question because I find the the community contributions to the various build engines (like MSBuild and NAnt) do include all the tasks that promote for CI servers, like getting versions from source control, cleaning folders, changing build numbers, sending emails, etc... Is it only because it "listens" to the changes happens o...

MSBuild and Xmlmassupdate having trouble changing xml

Using XmlMassupdate how to change: Change this: <applicationSettings> <StackOverflow.Properties.Settings> <setting name="StackOverflow_References_References" serializeAs="String"> <value>OLDVALUE</value> </setting> </StackOverflow.Properties.Settings> </applicationSettings> To this: <applicationSett...

How to Publish Web with msbuild?

Visual Studio 2010 has a Publish command that allows you to publish your Web Application Project to a file system location. I'd like to do this on my TeamCity build server, so I need to do it with the solution runner or msbuild. I tried using the Publish target, but I think that might be for ClickOnce: msbuild Project.csproj /t:Publish ...

Setting Assembly Info for InternalsVisibleTo with MSBuild Community Tasks

I'm using MSBuild Community Tasks to automatically update my assembly version numbers according to my Subversion repository tag. I have added the following to my project file: This gives me a new AssemblyInfo.cs file: unfortunately I need to add the following to get my MStests to work properly: [assembly: System.Runtime.C...

CruiseControl.Net - View report / log of build in progress.

We have a fairly lengthy build process, and so its nice to be able to see the build output / log of the build while the build is in still in progress. Is there any way of doing this with CruiseControl.Net / MSBuild? ...

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

TFS Build reports not showing original branch's comments

We have a "Main" branch and a "Dev" branch in source control; pretty common approach where developers work off of the Dev branch and merge changes to Main at set periods when the code has been unit tested and is ready for customer testing. We link Work Items like PBI's (Scrum) and require comments on checkins. Normally the TFS build rep...

Flatten C# Project Files with Build Action of 'Content'

Is it possible, through Visual Studio, to flatten Files with a Build Action of 'Content'? Currently if I have the content in a folder then the folder is created. I need the file to be moved up to the root directory on build. Is the only way an xcopy? ...

Build With ILMerge Error

Has anyone had this error with IlMerge? I am trying to merge a few assemblies for a .NET project using the 4.0 Framework. ILMerge /log /lib:..\Libraries /targetplatform:v4 /internalize:..\SolutionFiles\CJCommon.exclude /ndebug /out:bin\Release\Common.dll obj\Release\Common.dll C:\Development\CJCommon\Libraries\FluentNHibernate.dll C:\D...

PostSharp build targets not running when using Debug configuration

I have setup a Visual Studio project that I have edited to reference the PostSharp build targets. I did not use the MSI installed to install PostSharp on my development machine. The problem that I am having is that the PostSharp Targets are only executed when I change the build configuration to 'Release', but not in 'Debug'. I can veri...

CompileWorkflowTask

When building a VS2008 solution using TFS TeamBuild 2010 the CompileWorkflowTask throws the error: Using "CompileWorkflowTask" task from assembly "System.Workflow.ComponentModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35". Task "CompileWorkflowTask" (TaskId:631) C:\Program Files (x86)\MSBuild\Microsoft\Windows ...

MSBuild string that has this format $(SomeText)

Hi, in my MSBuild every text that has this pattern $(SomeText) is considered as property reference. I have an MSBuild Custom Task that writes content to some text file and the text that needs to be written is $(SomeText) thus MSBuild does not let this pass through because it is considered as properry reference. Any workaround. Many t...

Is there a way to format the warning and error messages that MSBuild logs?

I am using TFS Build to build my .net project. The TFS build produces an output file that lists all the errors and warnings that were generated. Is there a way (without implmenting a custom logger) to format the data that is output to this file (e.g. include full file path)? Thanks. ...

Automated Deployment Options

We have a web application primarily developed in .NET and are entering into an era where we will be deploying the application at client owned windows infrastructure. Our goal is to complete deployment of the application in less than 15 minutes including * Deployment across at least 8 or more web server instances * Creating a backup of t...

Why isn't @(DocFileItem) found during MSBuild AfterBuild task ?

I'm trying to post-process the documentation XML file as a post-build XSLT transformation (using the new XSLTransformation step), but the build fails with error Unable to execute transformation. Could not find file 'C:\...\documentation.XML'. The documentation XML file shows up fine on disk after the build is complete, but during the Aft...

MSBuild Target BeforeBuild not Executing

I seem to have a situation where code that I put into the BeforeBuild target is not successfully executing. Here is what I have: <Target Name="BeforeBuild" > <Message Text="Before Build" /> </Target> I can’t see the message output in the build log when the build runs. Is there something wrong with the way I’ve formatted this, or...

List obsolete classes/methods in msbuild

I have upgraded a visual basic 2005 project to visual basic 2010 (.net framework 4.0). I want to list all obsolete functions used in this project in order to change it with newer ones. How can I treat obsolete functions warnings as errors in visual basic 2010 ms-build? ...