【问题标题】:VSTS build failing with error "Process 'msbuild.exe' exited with code '1'."VSTS 构建失败并出现错误“进程 'msbuild.exe' 退出,代码为 '1'。”
【发布时间】:2017-07-20 13:57:11
【问题描述】:

出现构建失败错误,因为我有 4 条警告内容相同。

##[warning]C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Python Tools\Microsoft.PythonTools.Django.targets(120,5): Warning : Errors while resolving environments: Some project interpreters failed to load:

Interpreter d:\a\1\s\"name of project"\env\ has invalid value for 'Id': env
Interpreter reference has invalid path: Global|PythonCore|3.4

如果有区别的话,我正在使用 Python 3.4.4 64 位。

在构建的Build solution **\*.sln 部分构建失败。

提前感谢您的帮助。

【问题讨论】:

  • 您似乎在使用 vs2015 的托管代理上排队构建。如果您使用 vs2017 在私有代理上排队构建,结果是什么?您可以在一个驱动器中上传您的项目吗?
  • @marina-msft 嗨,我正在构建一个托管的 vs2017 代理。我能够成功地在 vs2017 上构建而没有错误。但是当使用 VSTS 构建时,它在尝试构建我的解决方案时失败。当唯一的版本是 15.0 时,似乎 MSBuild 试图在 MSBuild 文件夹中找到一个名为 v10.0 的文件夹。

标签: msbuild visual-studio-2017 azure-pipelines


【解决方案1】:

编辑 pyproj 文件以将 10.0 更改为 15.0

<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">15.0</VisualStudioVersion>

【讨论】:

    猜你喜欢
    • 2012-01-22
    • 2019-03-15
    • 2019-02-04
    • 1970-01-01
    • 1970-01-01
    • 2020-04-26
    • 2019-03-29
    • 2018-02-23
    • 1970-01-01
    相关资源
    最近更新 更多