title: MissingMethodException while building .NET Core Project in a linux image in Azure Devops
body: <p>We have a pipeline for our .net core project, using a linux image. The pipeline was working fine until we got this error while building with a cake task the application:</p>
  
  <pre><code>Microsoft (R) Build Engine version 16.0.0.0 for Mono
  Copyright (C) Microsoft Corporation. All rights reserved.
  
      /usr/share/dotnet/sdk/2.2.105/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(129,5): error MSB4018: The "GenerateDepsFile" task failed unexpectedly. [/home/vsts/work/1/s/src/bll/TestProject/TestProject.csproj]
      /usr/share/dotnet/sdk/2.2.105/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(129,5): error MSB4018: System.MissingMethodException: Method not found: System.Collections.Generic.IList`1&lt;NuGet.Packaging.Core.PackageDependency&gt; NuGet.ProjectModel.LockFileTargetLibrary.get_Dependencies() [/home/vsts/work/1/s/src/bll/TestProject/TestProject.csproj]
      /usr/share/dotnet/sdk/2.2.105/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(129,5): error MSB4018:   at Microsoft.NET.Build.Tasks.DependencyContextBuilder+&lt;&gt;c__DisplayClass36_0.&lt;GetLibraries&gt;b__0 (NuGet.ProjectModel.LockFileTargetLibrary export) [0x00000] in &lt;aafa1364e74c4a5ea60cdcaa95f71707&gt;:0  [/home/vsts/work/1/s/src/bll/TestProject/TestProject.csproj]
  </code></pre>
  
  <p>What can the reason be?
  Do we need to update the .NET SDK in the image?</p>