How to run tasks in parallel in MSBuild

前端 未结 5 2019
半阙折子戏
半阙折子戏 2020-12-02 22:50

Unless I\'ve grossly misunderstood MSBuild, tasks are executed in the document order in which they appear within a \'Target\' node.

I\'d like to be able to specify

5条回答
  •  攒了一身酷
    2020-12-02 23:34

    MSBuild has a /m command line switch to tell it the maximum number of concurrent processes to build with. The default value is 1. /m:x will use x processes. /m will use the number of processors on computer.

    I've used this as part of a shortcut in Visual Studio to run builds quicker by compiling projects in parallel. Scott Hanselman has a few posts about it here and here.

提交回复
热议问题