GenerateDepsFile task failed unexpectedly


All of a sudden, building with Travis is failing. travis.yml hasn’t been modified between then and now. The error message is as follows:

/usr/share/dotnet/sdk/2.1.401/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(129,5): error MSB4018: The “GenerateDepsFile” task failed unexpectedly. [/home/travis/build/opentk/opentk/src/OpenTK.Input/OpenTK.Input.csproj]

This project builds fine both locally and on AppVeyor. The project can be found here:

You have to have a mono version and a .net core version that have the same version of nuget. Haven’t found the right combo for myself yet.

Since travis doesn’t support specifying the patched versions of mono, it’s pretty tricky.

I have the same issue since a few days.
This one is the last which built successfully:
This is the first which failed:

I already tried this without success:

  • updated .net core from 2.1.300 to 2.2.108
  • changed environment from trusty to bionic

Any ideas how to fix this, please?