【问题标题】:Jenkins "Build a Visual Studio project using MSBuild" no version optionJenkins“使用 MSBuild 构建 Visual Studio 项目”无版本选项
【发布时间】:2016-12-14 01:27:00
【问题描述】:

我正在为我们的项目设置 Jenkins,但是当我设置“使用 MSBuild 构建 Visual Studio 项目或解决方案”时,没有附加的 MSbuild 版本(仅显示默认)屏幕截图选项。任何人都知道如何指向 MSBuild 版本?我需要一些帮助。

谢谢!

【问题讨论】:

标签: jenkins msbuild jenkins-plugins


【解决方案1】:

“要使用这个插件,请在Jenkins的配置页面指定MSBuild.exe的位置目录”来源:https://wiki.jenkins-ci.org/display/JENKINS/MSBuild+Plugin

您应该可以从... localhost:8080/configure 访问它

或者...从 Jenkins 主页点击“Manage Jenkins”,然后点击“Configure System”

添加 Msbuild 的位置后,当您使用 Msbuild 插件时,您应该会在项目配置中看到它可用。

我希望这会有所帮助!

【讨论】:

  • 谢谢!实际上我使用的是 Jenkins 2.x。全局配置需要在 Manage Jenkins -> Global Tool Configuration 中进行设置。而在 Jenkins 2.x 中,如果我选择默认,它会自动运行 msbuild.exe(需要在系统变量中设置):)
猜你喜欢
  • 2018-03-03
  • 2019-09-24
  • 2021-05-25
  • 1970-01-01
  • 2013-09-01
  • 2018-09-23
  • 2018-10-26
  • 2011-04-08
  • 1970-01-01
相关资源
最近更新 更多