MSBuild: chain solution building

Posted on 2007-07-26
Last Modified: 2013-11-26
Is it possible to chain the building of solutions in MSBuild, instead of having to manually select build for each one? If yes, how?

Question by:gromul
    1 Comment
    LVL 22

    Accepted Solution

    Of course. You can add additional solutions to the MSBuild solution file:

      <Solution Include="Test1.sln"/>
      <Solution Include="Test2.sln"/>

    <Target Name="Rebuild">
      <MSBuild Projects="@(Solution)" Targets="Rebuild"/>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Hire Top Freelancers to Complete C# Projects

    Source the talented Expert Exchange community
    for top quality work on your C# projects.

    Hire the best. Collaborate easily. Get quality work.

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video discusses moving either the default database or any database to a new volume.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now