prasanna p

prasanna p

  • 1.3k
  • 470
  • 104k

Version Conflict errors in the Packages

May 19 2020 7:38 PM
Hi Friends,
 
I am facing problem with the Package updation in visual studio .net core Project.
 
Severity Code Description Project File Line Suppression State Suppression State
Error NU1107 Version conflict detected for Microsoft.Extensions.Configuration. Install/reference Microsoft.Extensions.Configuration 3.1.0 directly to project Services to resolve this issue.
Services -> Microsoft.Extensions.Hosting 3.1.0 -> Microsoft.Extensions.Configuration (>= 3.1.0)
Services -> Models -> Microsoft.AspNetCore.App 2.1.1 -> Microsoft.Extensions.Configuration (>= 2.1.1 && < 2.2.0)
 
I am getting this error in  Services.proj and Project.csproj.I am using nuget.org(https://api.nuget.org/v3/index.json) in the package settings and I updated the packages but issues was not resolved.I tried with the following solutions
 
1)I added package references in the services.csproj and project.csproj.and agin I am getting the same error with different packages names So like that I added many package references with 3.1.0 version.Still I am not getting successful build.
 
2)I updated .net sdk 3.1.0 and I added microsoft offline packages and nuget.org both in the package settings.
 
I am not understanding how to fix package issues.
 
Please suggest me how to fix the issues.
 
Thanks in advance 

Answers (3)