Open Closed

NuGet package version conflicts #7810


0
timmackey created

Warning messages (1 of 5):

Severity:     Warning
Code:         MSB3277
Description:  Found conflicts between different versions of "System.Drawing.Common" that could not be resolved. 
              These reference conflicts are listed in the build log when log verbosity is set to detailed.
Project:      ngTTM.Web.Public
File:         C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets
Line:         2106	

Build log file (a small sample of a file with 101K lines)

28>    There was a conflict between "System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" and "System.Drawing.Common, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51".
28>        "System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" was chosen because it was primary and "System.Drawing.Common, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" was not.
28>        References which depend on "System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" [C:\Users\Tim\.nuget\packages\system.drawing.common\4.6.0\ref\netstandard2.0\System.Drawing.Common.dll].
28>            C:\Users\Tim\.nuget\packages\system.drawing.common\4.6.0\ref\netstandard2.0\System.Drawing.Common.dll
28>              Project file item includes which caused reference "C:\Users\Tim\.nuget\packages\system.drawing.common\4.6.0\ref\netstandard2.0\System.Drawing.Common.dll".
28>                C:\Users\Tim\.nuget\packages\system.drawing.common\4.6.0\ref\netstandard2.0\System.Drawing.Common.dll
28>        References which depend on "System.Drawing.Common, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" [].
28>            C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\src\ngTTM.Web.Core\bin\Debug\netcoreapp2.2\ngTTM.Web.Core.dll
28>              Project file item includes which caused reference "C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\src\ngTTM.Web.Core\bin\Debug\netcoreapp2.2\ngTTM.Web.Core.dll".
28>                C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\src\ngTTM.Web.Core\bin\Debug\netcoreapp2.2\ngTTM.Web.Core.dll
28>            C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\ttm\DrawImagesLibrary\bin\Debug\netcoreapp2.2\DrawImagesLibrary.dll
28>              Project file item includes which caused reference "C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\ttm\DrawImagesLibrary\bin\Debug\netcoreapp2.2\DrawImagesLibrary.dll".
28>                C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\ttm\DrawImagesLibrary\bin\Debug\netcoreapp2.2\DrawImagesLibrary.dll
28>                C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\ttm\ImportFilesLibrary\bin\Debug\netcoreapp2.2\ImportFilesLibrary.dll
28>                C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\ttm\JobsLibrary\bin\Debug\netcoreapp2.2\JobsLibrary.dll
28>                C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\src\ngTTM.Application\bin\Debug\netcoreapp2.2\ngTTM.Application.dll
28>                C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\src\ngTTM.Web.Core\bin\Debug\netcoreapp2.2\ngTTM.Web.Core.dll
28>                C:\Users\Tim\Documents\__ngTTMv723\aspnet-core\src\ngTTM.EntityFrameworkCore\bin\Debug\netcoreapp2.2\ngTTM.EntityFrameworkCore.dll

I can't figure out how to resolve the warning. Any suggestions?


4 Answer(s)
  • 0
    maliming created

    What is your product version?

    If it is convenient, please share your project code to: liming.ma@volosoft.com

  • 0
    timmackey created

    ANZ version 7.2.3 Sent project link via email.

  • 0
    maliming created

    hi timmackey Please try to downgrade the EPPlus package.

    image.png

  • 0
    timmackey created

    Your solution worked. Thank you!