How can I build all with MSBuild from the command line?

前端 未结 1 1932
时光取名叫无心
时光取名叫无心 2021-01-05 09:13

Is this valid?

MSBuild /t=all /configuration=all

I want to build ALL configurations of all projects in a sln file, etc from the command lin

相关标签:
1条回答
  • 2021-01-05 10:04

    You can't by default build all configurations using MSBuild command line options. In order to do this you need to create a new target (VS Project).

    The way I do it is:

    msbuild /t:BuildAll /Configuration:"Debug;Release;ContinuousIntegration"
    

    I make a standard Target, and call it BuildAll, and for every project I wanted to automate, I'd just create that Target and make it depend on all the targets you want to build automatically.

    0 讨论(0)
提交回复
热议问题