I'm trying to install an update through NuGet:
Microsoft.AspNetCore.Mvc 1.1.2 --> 2.0.4
However, the update never succeeds as it is rolled back after encountering the following conflict:
Version conflict detected for Microsoft.CodeAnalysis.CSharp. Reference the package directly from the project to resolve this issue.
Web -> Microsoft.AspNetCore.Mvc 2.0.4 -> Microsoft.AspNetCore.Mvc.RazorPages 2.0.4 ->
Microsoft.AspNetCore.Mvc.Razor 2.0.4 -> Microsoft.CodeAnalysis.CSharp (>= 2.3.1)
Web -> Microsoft.VisualStudio.Web.CodeGeneration.Design 1.1.0 ->
Microsoft.VisualStudio.Web.CodeGeneration.Utils 1.1.0 ->
Microsoft.CodeAnalysis.CSharp.Workspaces 1.3.0 ->
Microsoft.CodeAnalysis.CSharp (= 1.3.0).
So from what I understand from this, Microsoft.CodeAnalysis.CSharp
is the culprit since Microsoft.AspNetCore.Mvc
has dependencies that require it to be at least v2.3.1
while Microsoft.VisualStudio.Web.CodeGeneration.Design
also has dependencies which requires it to be v1.3.0
I'm not sure how to solve this. It does say Reference the package directly from the project to resolve this issue
but I don't really understand what this means and how to do it.