【问题标题】:ASP.NET MVC project building starts failing on travis-ciASP.NET MVC 项目构建在 travis-ci 上开始失败
【发布时间】:2023-03-12 04:43:01
【问题描述】:

最近我的 ASP.NET 项目在 travis-ci 上开始失败。我已经搜索了整个互联网和不同的论坛,但似乎无法找到解决方案。我不是 travis-ci 精灵,但我确实了解基础知识。

几天后,构建开始收到以下错误:

error MSB4044: The "KillProcess" task was not given a value for the required parameter "ImagePath".

Image with the full error

我试图重建过去成功构建的先前提交。测试我是否把项目文件搞砸了。不幸的是,这也失败了。

The successful commit build log.

The same commit failing now.

欢迎所有答案。提前谢谢你。

【问题讨论】:

    标签: c# asp.net build travis-ci


    【解决方案1】:

    显然 Travis-Ci 从 xbuild 切换到 msbuild 作为默认构建平台。目前 msbuild 平台不完全支持基于 UNIX 的系统上的标准 .NET 项目,只有 .NET 核心。

    所以一个临时的解决方法是重新配置 travis.yml 文件以使用 xbuild 构建。

    示例:

    language: csharp 
    solution: {path to .sln} 
    script: 
      - xbuild /p:Configuration=Release {path to .sln}
    

    【讨论】:

    • 好的,但是我该怎么做呢?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-29
    • 2021-07-15
    • 1970-01-01
    相关资源
    最近更新 更多