I have ASP.NET Api app with Microsoft.AspNetCore.App version 2.1.1 and xUnit Test with Microsoft.NETCore.App version 2.1.0
I have added xUnit Test application which has reference from Api project. Because of version difference (2.1.1 and 2.1.0) solution gives error while building.
Error:
Error CS1705
Assembly 'Customer.API' with identity 'Customer.API, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.AspNetCore.Mvc.Core, Version=2.1.1.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'
Question is: how can I upgrade Microsoft.AspNetCore.App in my test project.
PS: from Nuget Manager it is not possible to change version or update (in test project)