Azure DevOps VSTS .netcore build failing, but works fine on my PC

Solved it Edit 7/5/19 The YML file or the editor has the same issue with the .netcore SDK version. I have updated mine multiple times now. It will break randomly when the core SDK team pushes updates to Nuget, or you update VS or sometimes.. My builds are automated and it works today and tomorrow it does not, after 0 code changes. But I always come back to this fix and then it builds again.

Get your SDK version in VS2017 enter image description here

Set your version in DevOps enter image description here


I would suggest checking the following 2 items:

  1. Build in RELEASE locally and see if the problem is reproduced.
  2. Be specific about NuGet version in VSTS: enter image description here

    enter image description here