Top News for September 2015

Hello everyone! Every month we share some top stories from the previous month, and here’s our round-up for September. Open-source, cross-platform MSBuild: Continuing the open-source, cross-platform .NET story that is already well underway with .NET Core and the .NET Compiler Platform (“Roslyn”), MSBuild is joining the fun as explained by Nikolai Tillmann. The sources are… Read more

Second edition of the MSBuild and Team Foundation Build book released

Not many books that are reviewed like this on Amazon: Now the heavily augmented second edition has just come out, written by several people at Microsoft and reviewed by the product team. New extensive coverage of building C++ with MSBuild Complete rewrite of the Team Build sections to cover the new Windows Workflow Foundation build… Read more

Incorrect solution build ordering when using MSBuild.exe

UPDATE: This issue has been fixed in Visual Studio 11/NETFX45. As always, feedback is welcome! Please leave your comments in this blog post and report any bugs on Microsoft Connect.   We’ve had a few reports of cases where Visual Studio, and previous versions of MSBuild, will build the projects in the solution in the… Read more

Debugging MSBuild script with Visual Studio (3)

In my last two posts (here and here) I showed how to enable the unsupported MSBuild debugger to debug a build started on the command line with MSBuild.exe. In this final post, I’ll mention some other variations. Note that this blog is rather narrow, so some of the screenshots may be hard to see –… Read more

Debugging MSBuild script with Visual Studio (2)

In my previous post, I showed how to enable the hidden Visual Studio debugger for MSBuild script, and demonstrated it by stepping through the evaluation of a C# project. In this post, I’ll keep debugging into the actual build of that project. Note that this blog is rather narrow, so some of the screenshots may… Read more

Debugging MSBuild script with Visual Studio

Back when we started 4.0 development, I polled readers of the MSBuild blog to find out what features were most important to them. Debugging was #1 which was very surprising to us. Thinking about it more, it makes sense. In our team we’ve become so proficient ourselves at reading the XML and making sense of… Read more

ResGen.exe error: An attempt was made to load a program with an incorrect format

UPDATE: This issue is fixed in .NET 4.5. As always, feedback is welcome! Please leave your comments in this blog post and report any bugs on Microsoft Connect.   Recently, we’ve seen a number of people reporting problems with resource generation in Visual Studio 2010, particularly when they target .NET Framework 3.5 on 64-bit machines. … Read more

Better Parallelism in MSBuild 4 with YieldDuringToolExecution

Introduction In MSBuild 4 we introduced several performance improvements, particular for large interdependent builds.  By and large they are automatic and you receive their benefit without making any changes to the way your build process in authored.  However, there are still some cases where we are unable to make the best decision.  One such case… Read more

Assembly Resolution in MSBuild and Visual Studio Series Introduction

Assembly references are an integral part of build process. When the assembly references passed to the compiler are correct everything works but when they are not projects stop building.  When this happens It can be frustrating to try and figure out why a reference was resolved from one location rather than another thereby causing the… Read more

Building on Cross targeting scenarios and 64-bit MSBuild

UPDATE: Most issues around MSBuild support for cross-bitness and 64-bit builds are fixed in .NET 4.5. As always, feedback is welcome! Please leave your comments in this blog post and report any bugs on Microsoft Connect.   During the Visual Studio 2010 development cycle a push to make the build experience better on Cross compilation… Read more