jenkins - Jenkins 中的MSBuild配置

标签 jenkins msbuild

我在 Jenkins 中配置 MSBuild 时遇到以下错误:

[ImageResize] $ cmd.exe /C " msbuild.exe p:Configuration=Release E:\Heena\Applications\ImageResize\vbimage\ImageResize.sln " && exit %%ERRORLEVEL%% 'msbuild.exe' is not recognized as an internal or external command, operable program or batch file. Build step 'Build a Visual Studio project or solution using MSBuild' marked build as failure Finished: FAILURE

请注意,我在设置 MSbuild 插件期间已将 MSBuild 路径设置为 msBuild.exe。我已在 jenkins 上成功部署 Visual Studio 项目,但无法使用 MSBuild 配置它。

最佳答案

  1. 在 jenkins 的 MSBuild 安装选项中,

    选择 MSBuild 的路径 = C:\Windows\Microsoft.NET\Framework64\v4.0.30319

  2. 然后转到您要构建的各自的 jenkins 项目,

    添加构建步骤菜单中选择

    使用 MSBuild 选项构建 Visual Studio 项目或解决方案

  3. MSBuild 版本 将是您在步骤 1 和 MSBuild 文件 中定义的内容

    命令行参数选项中键入解决方案文件的路径

    输入/p:Configuration=Release

希望您能得到您想要的答案。

关于jenkins - Jenkins 中的MSBuild配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40079064/

相关文章:

msbuild - 使用构建服务器构建一次可行吗?

git - 创建一个 git post-receive 触发器(应该适用于 Mac OS X 上的 Xamarin Studio)

api - 列出过去一年的 Jenkins 作业构建详细信息以及触发构建的用户

java - Jenkins发送邮件中的身份验证错误

jenkins - 关于 jenkins 作业失败的通知 - 来自 scm 的管道

asp.net - 如何在不预编译的情况下使用命令行msbuild部署VS2012网站项目?

.net - 使用 WIX 时删除单元测试 dll 文件

linux - 无法允许 jenkins 对 shell 脚本进行 sudo 访问

visual-studio-2008 - 使用 Visual Studio 进行跨平台开发的最佳方法是什么?

memory - MSBuild需要3倍于Visual Studio的内存才能进行干净的构建