msbuild

How to integrate MSTest And MSBuild results in Cruisecontrol (v2.8.4)

How do you integrate MSTest and MSBuild results into specifically CruiseControl 2.8.4. I've read documentation online, but it seems to be outdated and not in line with how the later versions of cruisecontrol work. Any suggestions? ...

SignFile task in MSBuild: Can we make it faster?

I have MSbuild task like this to sign all the output modules of our project. <SignFile Condition="Exists('$(OutputPath)\%(FilesToSign.identity)')" CertificateThumbprint="$(THUMBPRINT)" SigningTarget="$(OutputPath)\%(FilesToSign.identity)" TimestampUrl="http://timestamp.verisign.com/scripts/timestamp.dll" /> It ta...

Visual Studio changing my target runtime ?

Hi All, A colleague of mine has a little problem with his dev env (Win 7 + VS 2010): We have a class librairy project which reference .net 2.0, if we build it with "Debug" and open it with Reflector, we can see "Target Runtime : 2.0..." if we build it with "Release" configuration, we can see "Target Runtime : v4.0" (and if we use it i...

Create Task Scheduler (for running in machine restart) using MsBuild

I use VS 2008, .NEt 3.5, and MsBuild, and I need custom task MsBuild that create a "task scheduler" that it will run when the machine restarted. Anyone know any custom tasks in MsBuild Extensions or has any sample code about it ? ...

How to create Web Deployment Package for IIS WebSite and use standard manifest/parameters

I have various IIS hosted service hosts with simple svc files etc. What I want to do is to be able to create deployment packages from our test server using IIS Export Package in a way that parameters may be saved and picked up at Export time so that the Export is repeatable and automatable. I.e. the Export will always use the necessary M...

Doing .NET 4.0 static code analysis (FxCop) with VS 2010 Professional

I have VS 2010 Professional (which, unlike Premium, does not include access to Code Analysis configuration within the IDE), and a C# 4 solution containing many-dozen projects. I want to do static code analysis as part of solution compilation. The possible ways I have identified with the help of SO and Google are: Edit every .csproj in...

JavaScript minifier (e.g. YUI) integrated to ASP.NET Webdeploy Publish

I have a javascript file that I minify using the Yahoo YUI. When I 'Publish' the web application project, I want it to only copy the .min.js file and not the original one too. I can use a pre-build event to create the minified version, but how do I prevent 'Publish' from copying the non minify file? I suppose I can 'exclude' the origina...

Change build output type from .dll to .dll.deploy through MSBuild

Hi all, I am writing a script to mimic the behaviour of the Visual Studio publish target for ClickOnce applications. I have got everything working well except for the part where build output executable and config files are renamed to ..deploy (e.g..exe.deploy). When I manually rename the files (using the ren command), I get warnings wh...

build .net solution from batch file

Hi I have a solution file comprising of 15 projects using a few third party dll references. I want to be able to build the solution from a batch file. What is the best way to do this? Thanks ...

MSBUILDEMITSOLUTION not working with .NET 4?

In prior versions of MSBuild, you could set an environment variable named MSBUILDEMITSOLUTION to 1 to get an XML version of a solution (.sln) file that could be parsed. According to the MSBuild Team Blog, that's still in the version that ships with Visual Studio 2010, but it does not seem to be working. Has anyone managed to get this wo...

Visual Studio Post Build Task passing Multiple files

I have an executable file - process.exe - which takes a single file path and does something with that file (no outputs). process.exe isn't capable of accepting wildcard paths e.g. process.exe c:\project\*.ext What I want to do is select all files of a particular extension in my project (*.xmlt) and pass each one of these files into the...

Does anyone know where to find NUnit console exit codes meanings?

I am getting error message from my MSBuild: "nunit-console.exe" exited with code -100. Does anyone know where NUnit console exit codes meanings can be found? ...

MSBuild ItemGroup Include/Exclude pattern issue

Problem: an ItemGroups array isn't correctly build based on the value passed in the exclude attribute. If you run this scrip it creates some sample file then tries to create an array called TheFiles based on the Include/Exclude attributes, problem is when the Exclude is anything other than hardcoded or a very simple property it gets it ...

In Team foundation server what is build agent and controller ?

Hi all, I am unable to grasp the concept of build server in Team foundation. Can anybody explain ? Also what is the build agent and controller in the foundation server ? ...

MSBuild Batching on Three Independent Variables

I have been writing a build system based on MSBuild, and am to the end of the project where I need to essentially run the one msbuild file 88 times by batching over three variables: Configuration = Debug; Beta; Release; Evaluation Platform = x86; x64 Language = CN; CS; DE; EN; ES; FR; IT; JP; KO; PL; TW I want to build: "Debug x86 CN",...

disable or remove ASPNETCOMPILER warning CS1685

We are using msbuild to build our .NET solution. Does anyone know how to get rid of these warnings at the end of the build? (Build target) -> ASPNETCOMPILER : warning CS1685: The predefined type 'Microsoft.CSharp.RuntimeBinder.Binder' is defined in multiple assemblies in the global alias; using definition from 'c:\Program ...

ASP.NET 4.0 Deployment package include

The build Deployment package feature of Visual Studio 2010 doesn't copy the App_GlobalResources directory from my ASP.NET 4.0 WebForms application. I know I can use for example "ExcludeFoldersFromDeployment" to exclude folders from the deployment, but how can I include this folder with MSBUILD? ...

msbuild/csproj exec task problem

I am having a problem on my build server(2003) with msbuild. I have narrowed down the issue to the exec task in the csproj file,which I have extracted into a very simple csproj(below), and still no joy, see the 'C:\Documents' error. This all works with no problems on my local machine. I think there is some issue with an environment vari...

Build with TFS 2010 on Windows Server 2008 R2 with mixed Platforms

I'm moving to a new TFS server on a 64 bit machine (Windows Server 2008 R2). My problem is that now some solution (WinForms with another class library projects) are failing. In my first attempt, I tried Release|Any CPU in the Process Tab of the Build definition Window, but with this configuration my WinForms project gets skipped. Then ...

MSBuild flattens the folder structure.

Hi, I'm trying to copy my Views folder for my MVC project in an MSBuild task, but it keeps on flatten everything, and I've tried loads of different things, but never manage to get it to work. Do you have any idea? <ItemGroup> <ViewsFolder Exclude="*.cs;*.svn-base;" Include="../MyMVCProject.Web\Views\**\*.*"/> </ItemGroup> <Cop...