# GenerateDepsFile task failed unexpectedly

**URL:** <https://travis-ci.community/t/generatedepsfile-task-failed-unexpectedly/3409>\
**Category:** C#\
**Created:** [May 14, 2019, 6:45pm UTC](https://travis-ci.community/t/generatedepsfile-task-failed-unexpectedly/3409 "2019-05-14T18:45:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![devvoid](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@devvoid](https://travis-ci.community/u/devvoid)\
**Post date:** [May 14, 2019, 6:45pm UTC](https://travis-ci.community/t/generatedepsfile-task-failed-unexpectedly/3409/1 "2019-05-14T18:45:16Z")

</div>

Hello,

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:

> **[daerogami/opentk](https://github.com/daerogami/opentk/tree/glfw-gamewindow)**
>
> This Open Toolkit library is a fast, low-level C# wrapper for OpenGL and OpenAL. It can be used standalone or inside a GUI on Windows, Linux, Mac, Android and iOS. - daerogami/opentk

---

<div class="post-metadata">

**Author:** ![jbtule](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jbtule](https://travis-ci.community/u/jbtule)\
**Post date:** [July 30, 2019, 6:39pm UTC](https://travis-ci.community/t/generatedepsfile-task-failed-unexpectedly/3409/2 "2019-07-30T18:39:23Z")

</div>

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.

> **[Incompatible versions of Mono MSBuild and .NET Core SDK (MSB4018)](https://rider-support.jetbrains.com/hc/en-us/articles/360004180039)**
>
> Problem description
> Some combinations of the Mono MSBuild and .NET Core SDK are incompatible on Linux and macOS.
> If you use such combinations, it will be impossible to build your project in JetBrai...

---

<div class="post-metadata">

**Author:** ![jbtule](https://avatars.discourse-cdn.com/v4/letter/j/8edcca/32.png) [@jbtule](https://travis-ci.community/u/jbtule)\
**Post date:** [July 30, 2019, 6:46pm UTC](https://travis-ci.community/t/generatedepsfile-task-failed-unexpectedly/3409/3 "2019-07-30T18:46:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sven-n](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/sven-n/32/2437_2.png) [@sven-n](https://travis-ci.community/u/sven-n)\
**Post date:** [August 5, 2019, 6:23am UTC](https://travis-ci.community/t/generatedepsfile-task-failed-unexpectedly/3409/4 "2019-08-05T06:23:05Z")

</div>

I have the same issue since a few days.  
This one is the last which built successfully: [https://travis-ci.org/MUnique/OpenMU/builds/557437388](https://travis-ci.org/MUnique/OpenMU/builds/557437388)  
This is the first which failed: [https://travis-ci.org/MUnique/OpenMU/builds/564068201](https://travis-ci.org/MUnique/OpenMU/builds/564068201)

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?
