Build
https://docs.microsoft.com/en-us/visualstudio/ide/reference/build-devenv-exe
Builds a solution using a specified solution configuration file.
Devenv SolutionName /build SolnConfigName [/project ProjName [/projectconfig ProjConfigName]]
Rebuild
https://docs.microsoft.com/en-us/visualstudio/ide/reference/rebuild-devenv-exe
Cleans and then builds the specified solution configuration.
devenv SolutionName /rebuild SolnConfigName [/project ProjName] [/projectconfig ProjConfigName]
This example cleans and rebuilds the project CSharpWinApp
, using the Debug
project build configuration within the Debug
solution configuration of MySolution
.
devenv "C:Documents and SettingssomeuserMy DocumentsVisual StudioProjectsMySolutionMySolution.sln" /rebuild Debug /project "CSharpWinAppCSharpWinApp.csproj" /projectconfig Debug
Jenkins中使用
在Jenkins中使用的时候,需要用devenv.com而不是devenv.exe