代码之家  ›  专栏  ›  技术社区  ›  den.run.ai

Travis CI上Mono 5.14.0.177、msbuild 15.0、nuget 4.7.1的生成失败,但在VirtualBox中不可复制

  •  7
  • den.run.ai  · 技术社区  · 6 年前

    对于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
    

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

    以及Travis CI的失败:

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

    有关GitHub的更多详细信息:

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

    1 回复  |  直到 6 年前
        1
  •  0
  •   den.run.ai    6 年前

    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