question

RichardLeonard-7951 avatar image
2 Votes"
RichardLeonard-7951 asked Sakacohart-3315 commented

Conflicts between different version of 'System.Numeric.Vectors'

I am getting the following error when trying to "Archive for Publish" my iOS build - "Conflicts between different version of 'System.Numeric.Vectors'".

I have tried to follow a number of the suggestions such as downgrading Newtonsoft.Json, trying to remove System.Memory from the GAC but nothing is resolving the issue.

The application will build and run when in debug and I can archive an Android build without issue but iOS will not work. The detailed output is as follows:

Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved.
There was a conflict between "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
"System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was primary and "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was not.
References which depend on "System.Numerics.Vectors, Version=2.0.5.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll].
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll
Project file item includes which caused reference "/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Numerics.Vectors.dll".
System.Numerics.Vectors
References which depend on "System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" [].
/Users/richardleonard/.nuget/packages/system.memory/4.5.4/lib/netstandard2.0/System.Memory.dll
Project file item includes which caused reference "/Users/richardleonard/.nuget/packages/system.memory/4.5.4/lib/netstandard2.0/System.Memory.dll".
/Users/richardleonard/.nuget/packages/system.memory/4.5.4/lib/netstandard2.0/System.Memory.dll
/Users/richardleonard/.nuget/packages/azure.core/1.15.0/lib/netstandard2.0/Azure.Core.dll
/Users/richardleonard/Projects/TheatresScanning/TheatresScanning/bin/Release/netstandard2.0/TheatresScanning.dll
/Users/richardleonard/.nuget/packages/azure.storage.blobs/12.9.0/lib/netstandard2.0/Azure.Storage.Blobs.dll
/Users/richardleonard/.nuget/packages/azure.storage.common/12.8.0/lib/netstandard2.0/Azure.Storage.Common.dll
/Users/richardleonard/.nuget/packages/system.diagnostics.diagnosticsource/4.6.0/lib/netstandard1.3/System.Diagnostics.DiagnosticSource.dll
/Users/richardleonard/.nuget/packages/system.memory.data/1.0.2/lib/netstandard2.0/System.Memory.Data.dll
/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll
/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll
Project file item includes which caused reference "/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll".
/Users/richardleonard/.nuget/packages/system.text.json/4.6.0/lib/netstandard2.0/System.Text.Json.dll
/Users/richardleonard/.nuget/packages/azure.core/1.15.0/lib/netstandard2.0/Azure.Core.dll
/Users/richardleonard/Projects/TheatresScanning/TheatresScanning/bin/Release/netstandard2.0/TheatresScanning.dll
/Users/richardleonard/.nuget/packages/azure.storage.blobs/12.9.0/lib/netstandard2.0/Azure.Storage.Blobs.dll
/Users/richardleonard/.nuget/packages/azure.storage.common/12.8.0/lib/netstandard2.0/Azure.Storage.Common.dll
/Users/richardleonard/.nuget/packages/system.memory.data/1.0.2/lib/netstandard2.0/System.Memory.Data.dll

I've spent 2 days where I have reinstalled xCode and VS for Mac but still get the same issue, any assistance would be greatly appreciated

dotnet-xamarinvs-msbuild
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RichardLeonard-7951 Try to remove the related dll reference and replace it with nuget package. And here is thread you can refer to.

0 Votes 0 ·

@KyleWang-MSFT - I had also tried all the steps in the Github issue. I modified the proj file, removed the references and added the nuget and the error is still there.

0 Votes 0 ·

@RichardLeonard-7951 Since you got an error, rather than a warnning, could you provide a minimal, reproducible example so that we can help to troubleshoot?

0 Votes 0 ·

Has anyone found a fix for this?
I'm seeing the sane issue

0 Votes 0 ·

Sorry i can't remember how I addressed this one; it was a sprint spike so the local branch it was on was never pushed so I can't even check for you

1 Vote 1 ·
Sakacohart-3315 avatar image Sakacohart-3315 RichardLeonard-7951 ·

Ok. Thanks for the reply

0 Votes 0 ·

0 Answers