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'

  1. in visual studio, go menu build > configuration manager.
  2. in active solution configurations drop down list select configuration 'a'
  3. select configuration want use each project. note not have 'a'. can valid project configuration.
  4. 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

configuration manager


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -