Browse by Tags

Tagged Content List
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: MSBuild Property Functions (2)

    Some more information about this 4.0 feature. (I've also updated the first post with this, so everything's in one place for your reference.) Built-in MSBuild functions The full list of built-in [MSBuild] functions, like the one above, are in the MSDN topic here . They include arithmetic (useful, for...
  • Blog Post: Custom Build Steps, Tools, and Events

    The VC++ build system is of course MSBuild based in VS 2010.  This automatically gives you a great deal more flexibility to customize your build than you had with .vcproj project files in prior releases.  We went out of our way to ensure that the .targets files that drive the build of a .vcxproj...
  • Blog Post: MSBuild Property Functions

    Have you ever wanted to do something simple in a build, like get a substring of a property value, and found that MSBuild didn't have syntax for it? You then had to write a task for it, which was tiresome to do for such a simple operation. What's more, if you wanted to do this during evaluation – outside...
  • Blog Post: Tuning C++ build parallelism in VS2010

    A great way to get fast builds on a multiprocessor computer is to take advantage of as much parallelism in your build as possible. If you have C++ projects, there’s two different kinds of parallelism you can configure. What are the dials I can set? Project-level parallel build, which is controlled...
  • Blog Post: MSBuild 4 Detailed Build Summary

    Introduction When we were developing the current version of MSBuild, we spent a lot of time analyzing builds to determine where our performance issues lay. The standard logging, even on diagnostic verbosity and with the performance summary enabled (/clp:PerformanceSummary=true on the MSBuild command...
  • Blog Post: My Visual Studio 2008 is broken after uninstalling .NET Framework 4.0

    If you find out that after trying out one of the beta versions of the new Visual Studio 2010 and uninstalling it together with the .NET Framework 4 or uninstalling only .NET Framework 4, every time you try to load a project on Visual Studio 2008 you face the following error: “Unable to read...
  • Blog Post: Getting Started with MSBuild

    I have had several customers asking me about MSBuild and how to get started learning the language and using it. A little over a year and a half ago, I joined the MSBuild team. When I got here, I did not even know what MSBuild was, and I have been a Visual Studio user for many years. This article is to...
  • Blog Post: MSBuild Task Factories: guest starring Windows Powershell

    One of the cool new features of MSBuild 4.0 is the extensible task factory.  Task factories allow you to include scripts directly in your project file (or an imported .targets file) and have those scripts parsed and executed by your favorite interpreter.  Those scripts might even be C# or VB...
  • Blog Post: Build Extensibility with .NET Framework 4

    Introduction With the release of .NET Framework 4 and Visual Studio 2010 comes MSBuild 4.0. Among the many great features in this version are new mechanisms to allow you (or your build lab) to extend the default build targets files with your own customizations. While some of this functionality did...
  • Blog Post: If your build fails with “MSB6002: The command-line for the “ResGen” task is too long”

    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 . If you have the RC build of VS2010, you are targeting the 3.5, 3.0, or 2.0 Framework, you have a VB or C# project which has a lot of references...
  • Blog Post: MSBuild Interview on CodeCast

    I had the distinct pleasure to meet up with Ken Levy and talk about MSBuild. Ken is responsible for the CodeCast interviews at code magazine . The interview consists of an in-depth technical and scenario discussion on how and why to use MSBuild, both in Visual Studio 2008 and Visual Studio 2010. We...
Page 1 of 1 (20 items)