Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Deploys a solution after a build or rebuild. Applies to managed code projects only.
Syntax
devenv SolutionName /Deploy [SolnConfigName [/Project ProjName [/ProjectConfig ProjConfigName]] [/Out OutputFilename]]
Arguments
- SolutionName - Required. The full path and name of the solution file. 
- SolnConfigName - Optional. The name of the solution configuration (such as - Debugor- Release) to be used to build 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.
- /ProjectProjName- Optional. 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. 
- /ProjectConfigProjConfigName- Optional. The names of a project build configuration (such as - Debugor- Release) to be used when building the- /Projectnamed. If more than one solution platform is available, you must also specify the platform (for example,- Debug|Win32). If this switch is specified, it overrides the SolnConfigName argument.
- /OutOutputFilename- Optional. 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. 
Remarks
The specified project must be a deployment project. If the specified project isn't a deployment project, when the project that has been built is passed for deployment, 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.
Example
This example deploys the project CSharpWinApp, using the Release project build configuration within MySolution.
devenv "%USERPROFILE%\source\repos\MySolution\MySolution.sln" /deploy Release /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Release