ASP.NET MVC项目构建在travis

编程入门 行业动态 更新时间:2024-10-24 16:31:06
本文介绍了ASP.NET MVC项目构建在travis-ci上开始失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

Recently my ASP.NET project started failing on travis-ci. I have searched all over the internet and different forums but cant seem to find a solution. I am not a travis-ci genie but I do understand the basics.

几天以来,构建开始出现以下错误:

Since a few days the builds started receiving the following error:

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

出现完整错误的图像

我试图重建以前成功构建的先前提交。测试我是否弄乱了项目文件。不幸的是,这也失败了。

I have tried to rebuild a previous commit that built successfully in the past. To test if I screwed something up with project files. Unfortunately that failed as well.

成功的提交构建日志。

相同的提交现在失败了。

欢迎所有答案。

推荐答案

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

Apparently Travis-Ci switched from xbuild to msbuild as default build platform. And currently the msbuild platform does not fully support standard .NET projects on UNIX based systems only .NET core.

因此,一种临时的解决方法是将travis.yml文件重新配置为

So a temporary workaround is to reconfigure the travis.yml file to build with xbuild.

示例:

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

更多推荐

ASP.NET MVC项目构建在travis

本文发布于:2023-11-17 05:05:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608932.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   NET   ASP   travis   MVC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!