ASP.NET MVC project building starts failing on travis-ci

只谈情不闲聊 提交于 2019-12-23 19:45:43

问题


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".

Image with the full error

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.

The successful commit build log.

The same commit failing now.

All answers are welcome. Thank you in advance.


回答1:


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.

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

example:

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


来源:https://stackoverflow.com/questions/47964233/asp-net-mvc-project-building-starts-failing-on-travis-ci

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!