HicServices / RDMP

Research Data Management Platform (RDMP) is an open source application for the loading,linking,anonymisation and extraction of datasets stored in relational databases.
https://github.com/HicServices/RDMP#research-data-management-platform
GNU General Public License v3.0
36 stars 16 forks source link

Build warning from conflicting MathNet.Numerics packages #1858

Open jas88 opened 3 months ago

jas88 commented 3 months ago

Describe the bug

We transitively include both MathNet.Numerics and the legacy MathNet.Numerics.Signed packages in RDMP, both of which provide version 5.0.0 of MathNet.Numerics but only one as an (obsolete) "strong name" signature. This causes build warnings, upsetting downstream projects using bits of RDMP (like SmiServices)....

To Reproduce Steps to reproduce the behavior:

  1. Build RDMP, look at warnings.

Expected behavior Build should be warning free.

dotnet build --use-current-runtime -p:Platform=x64 --configuration Release --verbosity quiet --nologo
/usr/share/dotnet/sdk/8.0.301/Microsoft.Common.CurrentVersion.targets(2401,5): warning MSB3243:
No way to resolve conflict between "MathNet.Numerics, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cd8b63ad3d691a37"
and "MathNet.Numerics, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null". Choosing "MathNet.Numerics, Version=5.0.0.0,
Culture=neutral, PublicKeyToken=cd8b63ad3d691a37" arbitrarily.
[/home/runner/work/SmiServices/SmiServices/src/common/Smi.Common/Smi.Common.csproj]