[英]Issue with Version Conflict detected for Microsoft.EntityFrameworkCore.Install Referance 3.1.2 in .NetCore 2.2?
I m working with N-tier architecture with .netcore 2.2我正在使用 .netcore 2.2 使用 N 层架构
see how my project structure:看看我的项目结构如何:
MainProject Version : how I m create the project(ASP.NET Core Web Application->Next->create->Empty(select the DropDown ASP.NET Core 2.2) MainProject 版本:我如何创建项目(ASP.NET Core Web Application->Next->create->Empty(选择 DropDown ASP.NET Core 2.2)
business logic project Version: how I m create the project(class library .net core)业务逻辑项目版本:我如何创建项目(类库.net core)
data access project Version: how I m create the project(class library .net core)数据访问项目版本:我如何创建项目(类库.net core)
model project Version: how I m create the project(class library .net core)模型项目版本:我如何创建项目(类库 .net core)
Error is:错误是:
Severity Code Description Project File Line Suppression State
Error NU1107 Version conflict detected for Microsoft.EntityFrameworkCore. Install/reference Microsoft.EntityFrameworkCore 3.1.2 directly to the project to resolve this issue.
projectname-> projectname.BusinessLogic -> projectname.DataAccess -> Microsoft.EntityFrameworkCore (>= 3.1.2)
projectname-> Microsoft.AspNetCore.App 2.2.0 -> Microsoft.EntityFrameworkCore (>= 2.2.0 && < 2.3.0). projectname
when I click on an error then this file display:当我单击错误时,此文件显示:
projectname.csproj项目名称.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.AspNetCore.Razor.Design" Version="2.2.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.2.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\DMEBase.BusinessLogic\DMEBase.BusinessLogic.csproj" />
<ProjectReference Include="..\DMEBase.Model\DMEBase.Model.csproj" />
</ItemGroup>
</Project>
Only 1 error is generated in my project我的项目中只生成了 1 个错误
how to solve this issue?如何解决这个问题? help
帮助
NuGet Packages ScreenShot: NuGet 包截图:
Write Click On Solution then I m going to Managenugetpackages->Consolidate->No Packages Found :写点击解决方案,然后我要去 Managenugetpackages->Consolidate->No Packages Found :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.