title | description | ms.date | ms.topic | helpviewer_keywords | author | ms.author | manager | ms.subservice | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-Project (devenv.exe) |
Learn how to use the Project devenv command-line switch to identify a single project within the specified solution configuration to build, clean, rebuild, or deploy the project. |
12/10/2018 |
reference |
|
ghogen |
ghogen |
mijacobs |
general-ide |
Identifies a single project within the specified solution configuration to build, clean, rebuild, or deploy.
devenv SolutionName {/Build|/Clean|/Deploy|/Rebuild} [SolnConfigName [/Project ProjName [/ProjectConfig ProjConfigName]] [/Out OutputFilename]]
-
SolutionName
Required. The full path and name of the solution file.
-
{
/Build
|/Clean
|/Deploy
|/Rebuild
} -
SolnConfigName
Optional. The name of the solution configuration (such as
Debug
orRelease
) applied to the solution named in SolutionName. If more than one solution platform is available, you must also specify the platform (for example,Debug|Win32
). If this argument is unspecified or an empty string (""
), the tool uses the solution's active configuration. -
/Project
ProjNameOptional. The path and name of a project file within the solution. You can enter the project's display name or a relative path from the SolutionName folder to the project file. You can also enter the full path and name of the project file.
-
/ProjectConfig
ProjConfigNameOptional. The project's build configuration name (such as
Debug
orRelease
) to be applied to the/Project
named. If more than one solution platform is available, you must also specify the platform (for example,Debug|Win32
). -
/Out
OutputFilenameOptional. The name of a file that you want to send the tool's output to. If the file already exists, the tool appends the output to the end of the file.
-
Must be used part of a
devenv
/Build
,/Clean
,/Rebuild
, or/Deploy
command. -
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 builds the project CSharpWinApp
, using the Debug
project build configuration within MySolution
.
devenv "%USERPROFILE%\source\repos\MySolution\MySolution.sln" /build Debug /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug