ASP.NET MVC项目构建在travis-ci上开始失败 [英] ASP.NET MVC project building starts failing on 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-ci上开始失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!