在Travis CI上使用Mono 5.14.0.177,msbuild 15.0,nuget 4.7.1构建失败,但在VirtualBox中不可复制 [英] Build failures with Mono 5.14.0.177, msbuild 15.0, nuget 4.7.1 on Travis CI, but not reproducible in VirtualBox

查看:78
本文介绍了在Travis CI上使用Mono 5.14.0.177,msbuild 15.0,nuget 4.7.1构建失败,但在VirtualBox中不可复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xenial和Trusty Ubuntu的Travis CI上遇到Mono 5.14.0.177,msbuild 15.0,nuget 4.7.1的构建失败,但在VirtualBox,Ubuntu Xenial中无法复制.

I'm getting build failures with Mono 5.14.0.177, msbuild 15.0, nuget 4.7.1 on Travis CI for both Xenial and Trusty Ubuntu, but not reproducible in VirtualBox, Ubuntu Xenial.

运行后:

mono tools/nuget/nuget.exe restore pythonnet.sln -o packages

错误消息是:

Currently running NuGet.exe 4.1.0.
Updating NuGet.exe to 4.7.1.
Update successful.
MSBuild auto-detection: using msbuild version '15.0' from '/usr/lib/mono/msbuild/15.0/bin'.
Error parsing solution file at /home/travis/build/pythonnet/pythonnet/pythonnet.sln: Invalid Image

在VirtualBox中成功构建了一个

Here is successful build in VirtualBox:

https://gist.github.com/denfromufa/23557331aba2ad548eba2fbff84f2307

在Travis CI中构建失败:

And failing build in Travis CI:

https://travis-ci.org/pythonnet/pythonnet/jobs/419381040

此问题在GitHub上的更多详细信息:

More details in this issue on GitHub:

https://github.com/pythonnet/pythonnet/pull/698

推荐答案

此问题已通过降级为msbuild 14.0暂时修复在pythonnet Travis CI中:

This issue has been fixed in pythonnet Travis CI temporarily by downgrading to msbuild 14.0:

cmd = "{0} update -self".format(nuget)
self.debug_print("Updating NuGet: {0}".format(cmd))
subprocess.check_call(cmd, shell=use_shell)
cmd = "{0} restore pythonnet.sln  -MSBuildVersion 14 -o packages".format(nuget)

https://github.com/pythonnet/pythonnet/blob /master/setup.py#L332

这篇关于在Travis CI上使用Mono 5.14.0.177,msbuild 15.0,nuget 4.7.1构建失败,但在VirtualBox中不可复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆