image.png

MSBuild Version 配置的 MSBuild.exe

MSBuild Build File 是需要发布项目的项目文件

/t:Rebuild 表示每次都重建,不使用增量编译

/P:Configuration=Release 表示编译 Release 版本

/p:DeployOnBuild=true 表示启用编译并发布 (试了下只支持文件系统发布,ftp不行) PublishProfile 指定vs创建的Profile名称。 用法: /p:DeployOnBuild=True;PublishProfile=FolderProfile

/p:VisualStudioVersion=11.0 表示VS2012,自己在vs里面看版本

/p:DefineConstants="ZHEJIANGSZ,SILVERLIGHT,TRACE" 浏览器内

/p:OutputPath=D:JenkinsJenkinsGitTest 编译后放的位置

Last modification:December 8, 2020
如果觉得文章对你有用,请随意赞赏