简体   繁体   中英

Visual Studio "Project reference" references to lower version of package

Have two projects, lets assume "Project" & "Project.Tests" (xUnit project)

Build fails after adding "Project" as a project reference to "Project.Tests" by the following error

在此处输入图像描述

It becomes little bit strange after looking to the dependencies

"Project" dependencies:

在此处输入图像描述

"Project.Tests" dependencies:

在此处输入图像描述

Both projects have the same dotnet core version

在此处输入图像描述

The question is, why does such a thing happen if i'm referencing to a project (not manually install a package with specific version)?

Fortunately I figured out the problem.

"Project" has a nuget package "Microsoft.EntityFrameworkCore.Design" of version 3.1.7(which causes problem), after downgrading it to the version 3.1.4 problem was resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM