MSB3277 in child project

97 Views Asked by At

Hello I got MSB3277 warning in child project if I reference parent project with two different dependencies.

ParentProject.csproj have:

<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql.Json.Microsoft" Version="6.0.0" />

Microsoft.EntityFrameworkCore.Design dependency:

  • Microsoft.EntityFrameworkCore.Relational (>= 6.0.1)

Pomelo.EntityFrameworkCore.MySql.Json.Microsoft dependency:

  • Microsoft.EntityFrameworkCore (>= 6.0.0)

ChildProject.csproj have:

<ProjectReference Include="ParentProject.csproj" />

Assembly resolotion goes fine in Parent project, but in Child I got:

warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore" that could not be resolved.

Is it a bug in dotnet?

0

There are 0 best solutions below