msbuild

Transforming TT files in MsBuild

I need to build a DSL Solution using MsBuild and want to be able to transform the TT files, I have tried the guide on http://msdn.microsoft.com/en-us/library/ee847423(VS.100).aspx but I am getting the following errors: Failed to resolve include text for file:{0} and also Loading the include file '{0}' returned a null or empty...

How to get MSBuild Exec to run a java program?

I am trying to run a command line action in my Team Build (MSBuild). When I run it on the command line of the build machine it works fine. But when run in the build script I get a "exited with code 3". This is command that I am running: C:\Program Files\Wavelink\Avalanche\PackageBuilder>.\jresdk\bin\java -classpath "WLUtil.jar;WLPac...

Is there a way to automatically include content files into asp.net project file?

I'm frequently adding a lot of content files (mostly images and js) to my ASP.NET project. I'm using VS publish system, and on publish, new files are not published until I include them in the project. I would like to auto include all files in specified directory. Is there a way to specify wich directories should be auto-included in cspr...

Deployment projects not supported by msbuild: what are my options ?

I'm using TeamCity to automatically build my solution with msbuild and it seems that .vdproj are not supported. What are my options to build an msi/installer ? Install Visual Studio on the build server Use another installer (WiX, nullsoft, innosetup ?) ?! I already have TeamCity running and building a .zip and I'm looking for the fa...

How to Integrate ILMerge into Visual Studio Build Process to Merge Assemblies?

I want to merge one .NET DLL assembly and one C# Class Library project referenced by a VB.NET Console Application project into one command-line console executable. I can do this with ILMerge from the command-line, but I want to integrate this merging of reference assemblies and projects into the Visual Studio project. From my reading, ...

How to execute a program on PostBuild event in parallel?

I managed to set the compiler to execute another program when the project is built/ran with the following directive in project options: call program.exe param1 param2 The problem is that the compiler executes "program.exe" and waits for it to terminate and THEN the project executable is ran. What I ask: How to set the compiler to run...

Is there a tool to navigate targets and properties 's definition?

I'm working on a bundle of MSBuild script files and many many times I have the need of locating the definition of a called target or a property being used. At the moment, I have to search to the target/property 's name text and view the file containing that text - only then I can read the definition of the target/property I'm looking for...

How to incorporate customized wpf screens in Wix Solution

We are developing a customized installer using Wix and Wpf. We have developed some screens using wpf and wish to integrate the same in Wix solution instead of using UI screens provided by Wix. Has anyone done this; Does WIX provides WPF dialogs or can we use our own custom dialogs (WPF Forms) in WIX solution. Any pointers for this will b...

Incremental build with anytime rollback

Ok, I get the incremental build and I'm working on it already, but I don't got the idea how to do rollbacks in case I need to. At the moment I'm using MSBuild and CruiseControl.NET to create the build system; everything is going smooth right up to the point when I start thinking about rollbacks. How is it achieved using either MSBuild or...

Delphi 2009 MS Build headaches

does anyone know of any good description of delphi's build system? (i know it's using MS Build.) i'm using delphi 2009. i wanted to set up a variation of the Debug build configuration that (often) has different defines (d2009 seems to call them "preprocessor symbols"). the problem i'm having is that--even though i turned off "inherit...

Installing MSBuild 4.0 without Visual Studio 2010

I installed .NET 4.0 and VS 2010 RC on my laptop and MSBuild was automatically installed. I was hoping to build a continuous integration server by just installing the .NET SDK without VS 2010, so I downloaded the .NET 4.0 Framework from Microsoft at this link. Unfortunately, it doesn't appear to have installed MSBuild with this downloa...

Excluding .svn directories in Rake cp_r

I'm writing a rakefile using Albacore for my .NET stuff, and I'm trying to figure out the easiest way to copy a project to another directory (artifacts) while excluding the .svn directories in its subdirectories. Suggestions? I'm running into a wall here. ...

Visual Studio 2010 web.config transformations (TransformWebConfig target)

I am trying to write unit tests for my transformations, so I am running: msbuild migrated-project.csproj /p:Configuration=Release /T:TransformWebConfig. This works for a new project I create in VS2010, but doesn't in this project. I'm assuming it's because it was originally a 2008 project. I know this is supposed to run in a webplatf...

MSBuild appears to only use old output files for custom build tools

I have an ANTLR grammar file as part of a C# project file and followed the steps outlined in the User Manual. <Project ...> <PropertyGroup> <Antlr3ToolPath>$(ProjectDir)tools\antlr-3.1.3\lib</Antlr3ToolPath> <AntlrCleanupPath>$(ProjectDir)AntlrCleanup\$(OutputPath)</AntlrCleanupPath> </PropertyGroup> <ItemGro...

How to leverage multicore CPUs when compiling C# projects in a large solution?

As far as I know, VS2008/MSBuild do not suport multithreaded compilation of C# projets. I don't know if VS2010 supports it. Do you know a 3rd party product or an open source projet that does that? ...

detecting the presence and version of IIS using MSBuild

What is the best way to determine whether IIS is installed and the version if it is using MSBuild? So far I can think of using either WMI or Registry but is there an existing task in the MS Community Task, MS Web Deployment or MSBuild Extension tasks which already does this? ...

MSBuild target _CopyWebApplication does not copy all necessary files to the bin folder

Elsewhere on the Web, you can find recommendations on using something like this to simulate the Publish feature in the VS 2005-2008 IDE from a command-line (I hope I did not goof up the syntax!): msbuild /t:ResolveReferences;_CopyWebApplication /p:BuildingProject=true;OutDir=C:\inetpub\wwwroot\ blah.csproj Now, it looks like the .dll'...

MSBuild Include Remote File 2008?

TFS 2008, VS 2008. I have a tfsbuild.proj and tfsbuild.msp file in $/MyStuff/TeamBuildTypes/Dev folder. I have a targets file at $/MyStuff/TeamBuildTypes/IncludeFiles/Common/test.xml. test.xml contains an XML fragment that overrides the BeforeGet task. I tried to get the file into my tfsbuild.proj file like this: <Import Project="$/MyS...

Can I set LARGEADDRESSAWARE from within Visual Studio?

I have a .net assembly that needs to be 32-Bit and needs to be /LARGEADDRESSAWARE. I know how to do this with EditBin, but I wonder if there is a built-in way in Visual Studio 2010? Or alternatively, did someone write an MSBuild Task for this? Edit: This is for a C# app, so no linker options sadly :( ...

MSBuild cannot find SGen when compiling a solution

I've looked at several other SGen-related questions on here and either their answers don't apply or their answers don't fix this for me. I have installed several SDKs to fix this issue with no luck. Reference types should not be changed since this is the only place this is a problem. Once suggestion is to put SGen.exe into the C:\Windows...