How to: Build Specific Targets in Solutions By Using MSBuild.exe
Visual Studio 2012
You can use MSBuild.exe to build specific targets of specific projects in a solution.
To build a specific target of a specific project in a solution
-
At the command line, type MSBuild.exe <SolutionName>.sln, where <SolutionName> corresponds to the file name of the solution that contains the target that you want to execute.
-
Specify the target after the /t switch in the format ProjectName:TargetName.