/Deploy (devenv.exe)
Visual Studio 2012
Deploys a solution after a build or rebuild. Applies to managed code projects only.
devenv SolutionName /deploy SolnConfigName [/project ProjName] [/projectconfig ProjConfigName] [/out LogFileName]
The specified project must be a deployment project. If the specified project is not a deployment project, when the project that has been built is passed to be deployed, it fails with an error.
Enclose strings that include spaces in double quotation marks.
Summary information for builds, including errors, can be displayed in the Command window, or in any log file specified with the /out switch.
This example deploys the project CSharpConsoleApp, using the Release project build configuration within the Release solution configuration of MySolution.
devenv "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /deploy Release /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Release