c++ - Batch compiling only one project in a solution -
say have solution contains 3 projects
solutiona projecta projectb projectc
the whole solution set build anycpu. however, projectb managed c++ project , (and it) build both win32 , x64. using tfs perform these builds nightly. there way accomplish this?
the .sln file cannot build same project in 2 configurations or platforms @ same time. 1 possible workaround create custom project, invoked .sln , phone call in turn projecta twice -- 2 different values of platform parameter. custom project file this:
<project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <propertygroup> <configuration condition="'$(configuration)' == ''">debug</configuration> </propertygroup> <target name="build"> <msbuild project="projecta.vcxproj" properties="platform=win32;configuration=$(configuration)" /> <msbuild project="projecta.vcxproj" properties="platform=x64;configuration=$(configuration)" /> </target> </project>
for work need following. 1. in solution disable build of projecta (or remove .sln). 2. add together custom project .sln.
also, remember, cannot pass explicit /p:platform alternative
c++ tfs build
No comments:
Post a Comment