devenv.exe 编译Solution

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 Settings\someuser\My Documents\Visual Studio\Projects\MySolution\MySolution.sln" /rebuild Debug /project "CSharpWinApp\CSharpWinApp.csproj" /projectconfig Debug

 

Jenkins中使用

在Jenkins中使用的时候,需要用devenv.com而不是devenv.exe

 

posted @ 2018-01-18 10:18  ChuckLu  阅读(312)  评论(0编辑  收藏  举报