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
Modify your solutions this way and change your ConfigurationToBuild to:
<ConfigurationToBuild Include="Release|Mixed Platforms">
<FlavorToBuild>Release</FlavorToBuild>
<PlatformToBuild>Mixed Platforms</PlatformToBuild>
</ConfigurationToBuild>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.