簡體   English   中英

在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

對於Xenial和Trusty Ubuntu,我在Travis CI上使用Mono 5.14.0.177,msbuild 15.0,nuget 4.7.1進行構建失敗,但在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的成功構建:

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

並且在Travis CI中失敗了:

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

關於GitHub的這個問題的更多細節:

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

此問題已在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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM