visual studio - Build a solution with ms build when the solution configuration doesn't match all project -
i have solution has configuration lets call "a" 80% of projects in solution have configuration "a" rest not. although need built.
when build msbuild proj.sol /p:configuration=a /p:platform=x64
error messages
error msb4057: target "build" not exist in project.
it seams can build move of projects not ones configuration name not match solutions.
you need update solution configuration 'a' ensure other projects have valid project configuration solution configuration 'a'
- in visual studio, go menu build > configuration manager.
- in active solution configurations drop down list select configuration 'a'
- select configuration want use each project. note not have 'a'. can valid project configuration.
- ensure platform setting set projects well. can different solution platform. i.e. solution x64 1 project might set x86.
msbuild proj.sln /p:configuration=a /p:platform=x64
Comments
Post a Comment