Rider generating incorrect package references for dependant projects

I have solution with 2 dotnet 6.0 library projects using c# 10

Lib1 references the nuget package Pomelo.EntityFrameworkCore.MySql/6.0.1

which in turn references Microsoft.EntityFrameworkCore.Relational/6.0.5

Lib2 references Lib1 as a project however when I drill down through the dependencies, I see Projects > Lib1 > Pomelo.EntityFrameworkCore.MySql/6.0.1 >  Microsoft.EntityFrameworkCore.Relational/6.0.1

which is incorrect - and causes version warnings when compiling lib2 :

Microsoft.Common.CurrentVersion.targets(2302, 5): [MSB3277] Found conflicts between different versions of "Microsoft.EntityFrameworkCore.Relational" that could not be resolved.
There was a conflict between "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60"
and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60".

My question is - where is this error happening - is this a rider problem or a nuget problem or an msbuild problem or ... ?

 

 

4 comments
Comment actions Permalink

Hello, could you please try building your solution using `dotnet build` command and let me know if you face the same error? That will help us to isolate the issue. 

0
Comment actions Permalink

Sorry for the delay I will try to get to this sometime later today :)

0
Comment actions Permalink

Hi - yes same error - see below

I found that if I specifically add version 6.0.5.0 of the Microsoft.EntityFrameworkCore.Relational package to the Gms.Data library, then that version is used everywhere. If not then we run into the situation below. Is this possibly something in the way that the Pomelo package was built ?

 

gerry@udev:~/Projects/GMS/Libs/Data$ dotnet build
Microsoft (R) Build Engine version 17.2.0+41abc5629 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  Gms.Data -> /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore.Relational" that could not be resolved. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: There was a conflict between "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was chosen because it was primary and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was not. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" [/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll]. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" []. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/.nuget/packages/pomelo.entityframeworkcore.mysql/6.0.1/lib/net6.0/Pomelo.EntityFrameworkCore.MySql.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/.nuget/packages/pomelo.entityframeworkcore.mysql/6.0.1/lib/net6.0/Pomelo.EntityFrameworkCore.MySql.dll". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/.nuget/packages/pomelo.entityframeworkcore.mysql/6.0.1/lib/net6.0/Pomelo.EntityFrameworkCore.MySql.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
  Successfully created package '/home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/Gms.Data.6.0.0.nupkg'.
  DbData -> /home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore.Relational" that could not be resolved. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: There was a conflict between "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was chosen because it was primary and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was not. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" [/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll]. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" []. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
  DbApp -> /home/gerry/Projects/GMS/Libs/Data/DbApp/bin/Debug/net6.0/DbApp.dll

Build succeeded.

/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore.Relational" that could not be resolved. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: There was a conflict between "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was chosen because it was primary and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was not. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" [/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll]. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" []. [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/.nuget/packages/pomelo.entityframeworkcore.mysql/6.0.1/lib/net6.0/Pomelo.EntityFrameworkCore.MySql.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/.nuget/packages/pomelo.entityframeworkcore.mysql/6.0.1/lib/net6.0/Pomelo.EntityFrameworkCore.MySql.dll". [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/.nuget/packages/pomelo.entityframeworkcore.mysql/6.0.1/lib/net6.0/Pomelo.EntityFrameworkCore.MySql.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbData/DbData.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: Found conflicts between different versions of "Microsoft.EntityFrameworkCore.Relational" that could not be resolved. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277: There was a conflict between "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was chosen because it was primary and "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" was not. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" [/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll]. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/.nuget/packages/microsoft.entityframeworkcore.relational/6.0.1/lib/net6.0/Microsoft.EntityFrameworkCore.Relational.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:     References which depend on "Microsoft.EntityFrameworkCore.Relational, Version=6.0.5.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" []. [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:         /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:           Project file item includes which caused reference "/home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll". [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/Gms.Data/bin/Debug/net6.0/Gms.Data.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
/usr/share/dotnet/sdk/6.0.300/Microsoft.Common.CurrentVersion.targets(2302,5): warning MSB3277:             /home/gerry/Projects/GMS/Libs/Data/DbData/bin/Debug/net6.0/DbData.dll [/home/gerry/Projects/GMS/Libs/Data/DbApp/DbApp.csproj]
    2 Warning(s)
    0 Error(s)

Time Elapsed 00:00:04.12
gerry@udev:~/Projects/GMS/Libs/Data$ 

0
Comment actions Permalink

Similar issue was discussed there: https://github.com/dotnet/msbuild/issues/2478 Since you mentioned that it is reproduced with dotnet command, then it looks like the reason for it is related to MSBuild issue. Can you also check if suggested workaround helps with warnings?

0

Please sign in to leave a comment.