Version conflict detected for NuGet packages

前端 未结 3 1355

I am working on an ASP.Net core 2.1 web app project. I have 1 project in my solution and 3 other libraries, it\'s and advanced architecture (data access layer (DAL)

相关标签:
3条回答
  • 2021-01-29 07:15

    Option 1 check visual studio error window and identify which package is making the conflict . make sure both packages have save version code

    0 讨论(0)
  • 2021-01-29 07:20

    Just want to chip in that i had the same issue but with EntityFrameworkCore 3.0 preview. I solved it by simply downgrading all entityframework 3.0(preview) nuget packages to latest stable (2.2).

    Hopefully this helps someone aswell, took me hours...

    0 讨论(0)
  • 2021-01-29 07:36

    The issue is because you're having local directory path to one of your {projectName}.csproj file Kindly review your .csproj files by Right clicking project and select Edit {projectName}.scproj

    e.g

    <Reference Include="Microsoft.EntityFrameworkCore">
          <HintPath>..\..\..\..\..\..\..\Program Files\dotnet\sdk\NuGetFallbackFolder\Microsoft.EntityFrameworkCore\2.1.1\lib\netstandard2.0\Microsoft.EntityFrameworkCore.dll</HintPath>
        </Reference>
    

    If yes than go to Nuget Package Manager and add your library bu selecting nuget.org as Package Source

    after restoring from nuget Package manager csproject file will have following tag Added to

    <PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="2.1.1" />
    

    Here {projectName} is the name of C# project.

    0 讨论(0)
提交回复
热议问题