Hi Ann,

A quick tweak of Lennart's MSBuild script should get you what you
want...

<Project DefaultTargets="" ToolsVersion="3.5" xmlns="http://
schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <Configuration Condition=" '$(Configuration)' == '' ">Debug</
Configuration>
        <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    </PropertyGroup>

    <ItemGroup>
        <ProjectsToBuild Include="C:\path\**\*.csproj" Exclude="C:\path
\**\DontBuildThis.csproj"/>
    </ItemGroup>

    <Target Name="Build">
        <MSBuild Projects="@(ProjectsToBuild)"
Properties="Configuration=$(Configuration);Platform=$(Platform)"/>
    </Target>
</Project>

An extended example can be found here:
http://www.sedodream.com/PermaLink,guid,ed3a0c98-fdac-4467-9116-5b3bf6755abc.aspx

Cheers,
Jay

Reply via email to