This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Deploys a solution after a build or rebuild. Applies to managed code projects only.
devenv SolutionName /deploy SolnConfigName [/project ProjName] [/projectconfig ProjConfigName] [/out LogFileName]
Required. The name of the solution configuration that will be used to build the solution named in
Required. The full path and name of the solution file.
Optional. The path and name of a project file within the solution. You can enter a relative path from the
SolutionName folder to the project file, or the project's display name, or the full path and name of the project file.
Optional. The name of a project build configuration to be used when building the
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
This example deploys the project
CSharpConsoleApp, using the
Release project build configuration within the
Release solution configuration of
devenv "C:\Documents and Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /deploy Release /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Release
Devenv Command Line Switches /Project (devenv.exe) /Build (devenv.exe) /Clean (devenv.exe) /Rebuild (devenv.exe) /Out (devenv.exe)