0

i take this code from blow link MSbuild task fails because "Any CPU" solution is built out of order

<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>

my question is that now i want to specify

the X86 for $(BuildProjectFolderPath)/Pricer/Pricer.sln

and

Any CPU for $(BuildProjectFolderPath)/Pricer/Pricer.Install/Pricer.Install.sln

Means is there any specification or Properties i need set in SoutionToBuild

Community
  • 1
  • 1
Saroop Trivedi
  • 2,245
  • 6
  • 31
  • 49

1 Answers1

2

Modify your solutions this way and change your ConfigurationToBuild to:

<ConfigurationToBuild Include="Release|Mixed Platforms">
  <FlavorToBuild>Release</FlavorToBuild>
  <PlatformToBuild>Mixed Platforms</PlatformToBuild>
</ConfigurationToBuild>
Ludwo
  • 6,043
  • 4
  • 32
  • 48
  • I seen your give link early and i follow it too but same thing happen.My Binaries not generate.Something i missing in code. But this is not give me proper output. – Saroop Trivedi Nov 21 '11 at 06:24