I have an asp.net web api project that targets .net Core 3.1. It builds on DevOps Server 2019 just fine.
I added a project to run XUnit tests. This project also targets .net Core 3.1. The solution (containing both projects) builds on my desktop just fine, but when I try and build it on the server I get errors like the following:
[error]CSC(0,0):
Error CS1705: Assembly 'myteam API' with identity 'myteam API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.AspNetCore.Mvc.Core, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which has a higher version than referenced assembly 'Microsoft.AspNetCore.Mvc.Core' with identity 'Microsoft.AspNetCore.Mvc.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60