MSbuild task fails because "Any CPU" solution is built out of order
Posted
by Art Vandalay
on Stack Overflow
See other posts from Stack Overflow
or by Art Vandalay
Published on 2009-03-27T01:16:45Z
Indexed on
2010/04/16
22:23 UTC
Read the original article
Hit count: 967
msbuild
|team-build
I have two solutions to build in Teambuild, one is the application itself, the other one is the WiX installer. I want to build the application using "Any CPU" build configuration and the installer using "x86". I've listed the "Any CPU" solution first in my project file, but Teambuild always builds the "x86" solution first.
I'm setting BuildSolutionsInParallel = false, but it still builds the solutions in the reverse listed order. If I change the first solution to "Mixed Platform", it works fine. How can I get the solutions to build in the order listed in the project file?
<Project ...>
<PropertyGroup>
<!-- We want to build the install solution after the build solution -->
<BuildSolutionsInParallel>false</BuildSolutionsInParallel>
</PropertyGroup>
<ItemGroup>
<SolutionToBuild Include="$(BuildProjectFolderPath)/Pricer/Pricer.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
<SolutionToBuild Include="$(BuildProjectFolderPath)/Pricer/Pricer.Install/Pricer.Install.sln">
<Targets></Targets>
<Properties></Properties>
</SolutionToBuild>
</ItemGroup>
<ItemGroup>
<ConfigurationToBuild Include="Release|Any CPU">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>Any CPU</PlatformToBuild>
</ConfigurationToBuild>
<ConfigurationToBuild Include="Release|x86">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>x86</PlatformToBuild>
</ConfigurationToBuild>
</ItemGroup>
</Project>
© Stack Overflow or respective owner