My .net core 3.0 API Project fails to build on the Azure Devops Pipeline because the Restore Package Task fails with this error :
NU1605: Detected package downgrade: Microsoft.AspNetCore.Razor.Design from 2.2.0 to 2.1.2. Reference the package directly from the project to select a different version.
WebApi -> Microsoft.AspNetCore.App 2.2.0 -> Microsoft.AspNetCore.Razor.Design (>= 2.2.0 && < 2.3.0)
WebApi -> Microsoft.AspNetCore.Razor.Design (>= 2.1.2))
I just can't figure out what to do. This Razor.Design package is not even referenced in my project but I guess AspNetCore.App depends on it (then why does it work locally without this package is a mistery to me).
I'm running the Pipeline on Agent with Windows 2019 image. dotnetcore30 should not be a problem.