in my VC++ 2015 project, I have two platform configuration, Win32 and x64 for the solution file
MyProject.sln contains multiples projects that able to build for Platform Win32 and x64
I have specific project build is uncheck in Configuration Manager for x64
For example, MyProject.sln contains Project1 and Project2, only Project1 will have both Platform Win32 and x64 going to build, Project2 will only build for Win32
msbuild "MyProject.sln" /p:platform=Win32 /p:configuration=Debug /t:rebuild // this work
msbuild "MyProject.sln" /p:platform=x64 /p:configuration=Debug /t:rebuild // this doesn't work
msbuild will try to build Project2 as well, but it will failed due to the dependend lib is not found, in fact, i want it to exclude Project2 from build, but somehow msbuild does not respect the .sln settings
i open up MyProject.sln in notepad and notice it is clearly Project2 not include in x64 build
anyway to exclude the Project2 build in Platform x64 when using msbuild? build through VS2015 IDE has no issue because the Configuration Manager I have uncheck it from build.