[英]Build failures with Mono 5.14.0.177, msbuild 15.0, nuget 4.7.1 on Travis CI, but not reproducible in VirtualBox
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. 对于Xenial和Trusty Ubuntu,我在Travis CI上使用Mono 5.14.0.177,msbuild 15.0,nuget 4.7.1进行构建失败,但在VirtualBox,Ubuntu Xenial中无法重现。
After running: 运行后:
mono tools/nuget/nuget.exe restore pythonnet.sln -o packages
the error message is: 错误消息是:
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
Here is successful build in VirtualBox: 这是VirtualBox的成功构建:
https://gist.github.com/denfromufa/23557331aba2ad548eba2fbff84f2307 https://gist.github.com/denfromufa/23557331aba2ad548eba2fbff84f2307
And failing build in Travis CI: 并且在Travis CI中失败了:
https://travis-ci.org/pythonnet/pythonnet/jobs/419381040 https://travis-ci.org/pythonnet/pythonnet/jobs/419381040
More details in this issue on GitHub: 关于GitHub的这个问题的更多细节:
https://github.com/pythonnet/pythonnet/pull/698 https://github.com/pythonnet/pythonnet/pull/698
This issue has been fixed in pythonnet Travis CI temporarily by downgrading to msbuild 14.0: 此问题已在pythonnet Travis CI中通过降级到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 https://github.com/pythonnet/pythonnet/blob/master/setup.py#L332
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.